Disable hb_ot_glyph_decompose in HB_TINY

This commit is contained in:
Ebrahim Byagowi 2020-01-24 21:20:07 +03:30
parent 0e4b2676bd
commit b7762c7068
3 changed files with 7 additions and 1 deletions

View File

@ -61,6 +61,7 @@
#define HB_NO_ERRNO
#define HB_NO_FACE_COLLECT_UNICODES
#define HB_NO_GETENV
#define HB_NO_GLYPH
#define HB_NO_HINTING
#define HB_NO_LANGUAGE_PRIVATE_SUBTAG
#define HB_NO_LAYOUT_FEATURE_PARAMS

View File

@ -24,7 +24,7 @@
#include "hb.hh"
#ifndef HB_NO_OT_GLYPH
#ifndef HB_NO_GLYPH
#include "hb-ot.h"
#include "hb-ot-glyf-table.hh"

View File

@ -37,6 +37,7 @@
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
#endif
#if !defined(HB_NO_COLOR) && !defined(HB_NO_GLYPH)
static void
svg_dump (hb_face_t *face, unsigned face_index)
{
@ -325,6 +326,7 @@ dump_glyphs (hb_blob_t *blob, const char *font_name)
hb_ot_glyph_decompose_funcs_destroy (funcs);
}
#endif
/* Only this part of this mini app uses private API */
#include "hb-static.cc"
@ -485,6 +487,7 @@ print_layout_info_using_private_api (hb_blob_t *blob)
}
}
}
/* end of private API use */
int
main (int argc, char **argv)
@ -498,7 +501,9 @@ main (int argc, char **argv)
hb_blob_t *blob = hb_blob_create_from_file (argv[1]);
printf ("Opened font file %s: %d bytes long\n", argv[1], hb_blob_get_length (blob));
print_layout_info_using_private_api (blob);
#if !defined(HB_NO_COLOR) && !defined(HB_NO_GLYPH)
dump_glyphs (blob, argv[1]);
#endif
hb_blob_destroy (blob);
return 0;