Type | Name | Description |
USHORT | version | Version number (set to 0) |
USHORT | numRanges | Number of records to follow |
GASPRANGE | gaspRange[numRanges] | Sorted by ppem |
Type | Name | Description |
USHORT | rangeMaxPPEM | Upper limit of range, in PPEM |
USHORT | rangeGaspBehavior | Flags describing desired rasterizer behavior. |
Flag | Meaning |
GASP_GRIDFIT | Use gridfitting |
GASP_DOGRAY | Use grayscale rendering |
Flag | Value | Meaning |
GASP_DOGRAY | 0x0002 | small sizes, typically ppem<9 |
GASP_GRIDFIT | 0x0001 | medium sizes, typically 9<=ppem<=16 |
GASP_DOGRAY| | 0x0003 | large sizes, typically ppem>16 |
(neither) | 0x0000 | optional for very large sizes, typically ppem>2048 |
Field | Value | Meaning |
version | 0x0000 | |
numRanges | 0x0003 | |
Range[0], Flag | 0x0008 0x0002 | ppem<=8, grayscale only |
Range[1], Flag | 0x0010 0x0001 | 9<=ppem<=16, gridfit only |
Range[2], Flag | 0xFFFF 0x0003 | 16<ppem, gridfit and grayscale |