fontjs
Version:
FontJS (Font.js) is a packages for TrueType font parsing and manipulation
52 lines (51 loc) • 1.54 kB
TypeScript
export declare enum CompoundGlyphFlags {
/**
* If set, the arguments are words; If not set, they are bytes
*/
ARG_1_AND_2_ARE_WORDS = 1,
/**
* If set, the arguments are xy values; If not set, they are points
*/
ARGS_ARE_XY_VALUES = 2,
/**
* If set, round the xy values to grid; if not set do not round xy values to grid
* (relevant only to bit 1 is set)
*/
ROUND_XY_TO_GRID = 4,
/**
* If set, there is a simple scale for the component; If not set, scale is 1.0
*/
WE_HAVE_A_SCALE = 8,
/**
* If set, at least one additional glyph follows this one
*/
MORE_COMPONENTS = 32,
/**
* If set the x direction will use a different scale than the y direction
*/
WE_HAVE_AN_X_AND_Y_SCALE = 64,
/**
* If set there is a 2-by-2 transformation that will be used to scale the component
*/
WE_HAVE_A_TWO_BY_TWO = 128,
/**
* If set, instructions for the component character follow the last component
*/
WE_HAVE_INSTRUCTIONS = 256,
/**
* Use metrics from this component for the compound glyph
*/
USE_MY_METRICS = 512,
/**
* If set, the components of this compound glyph overlap
*/
OVERLAP_COMPOUND = 1024,
/**
* Bit 11: The composite is designed to have the component offset scaled
*/
SCALED_COMPONENT_OFFSET = 2048,
/**
* Bit 12: The composite is designed not to have the component offset scaled
*/
UNSCALED_COMPONENT_OFFSET = 4096
}