[subset] add documentation for subset input flag enums.

This commit is contained in:
Garret Rieger 2021-06-23 13:19:25 -07:00
parent 372722ceee
commit e5c887fc0f
1 changed files with 20 additions and 0 deletions

View File

@ -41,12 +41,32 @@ typedef struct hb_subset_input_t hb_subset_input_t;
typedef enum
{
// If set hinting instructions will be retained in the produced subset.
// Otherwise hinting instructions will be dropped.
// Defaults to true.
HB_SUBSET_FLAG_HINTING = 1,
// If set glyph indices will not be modified in the produced subset.
// If glyphs are dropped their indices will be retained as an empty
// glyph.
// Defaults to false.
HB_SUBSET_FLAG_RETAIN_GIDS = 2,
// If set and subsetting a CFF font the subsetter will attempt to
// remove subroutines from the CFF glyphs.
// Defaults to false.
HB_SUBSET_FLAG_DESUBROUTINIZE = 3,
// If set non-unicode name records will be retained in the subset.
// Defaults to false.
HB_SUBSET_FLAG_NAME_LEGACY = 4,
// If set the subsetter will set the OVERLAP_SIMPLE flag on each
// simple glyph.
// Defaults to false.
HB_SUBSET_FLAG_SET_OVERLAPS_FLAG = 5,
// If set the subsetter will not drop unrecognized tables and instead
// pass them through untouched.
// Defaults to false.
HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED = 6,
// If set the notdef glyph outline will be retained in the final subset.
// Defaults to false.
HB_SUBSET_FLAG_NOTDEF_OUTLINE = 7,
} hb_subset_flag_t;