Namespace Ot.Head
Constant Ot.Head.Tag = "head"
Class Ot.Head.Table
Constructor
-
new Ot.Head.Table(majorVersion?:number,minorVersion?:number)
Creates an Ot.Head.Table with given version. Defaults to
(1, 0)
.
Properties
- readonly majorVersion:number
- readonly minorVersion:number
- fontRevision:number
- readonly checkSumAdjust:number
- readonly magicNumber:number
- flags:Ot.Head.Flags
- unitsPerEm:number
- created:number
- modified:number
- volatile xMin:number
- volatile yMin:number
- volatile xMax:number
- volatile yMax:number
- macStyle:Ot.Head.MacStyle
- lowestRecPPEM:number
- fontDirectionHint:Ot.Head.FontDirectionHint
- volatile indexToLocFormat:number
- glyphDataFormat:number
Enum Ot.Head.Flags
- BaseLineYAt0 = Bit 0 (
1 << 0
) - LeftSidebearingAtX0 = Bit 1 (
1 << 1
) - InstructionsMayDependOnPointSize = Bit 2 (
1 << 2
) - ForcePpemToBeInteger = Bit 3 (
1 << 3
) - InstructionMayAlterAdvanceWidth = Bit 4 (
1 << 4
) - IntendedToBeVertical = Bit 5 (
1 << 5
) - Reserved6 = Bit 6 (
1 << 6
) - NeedComplexLayout = Bit 7 (
1 << 7
) - HasAATMetamorphism = Bit 8 (
1 << 8
) - HasStrongRightToLeft = Bit 9 (
1 << 9
) - HasIndicRearrangement = Bit 10 (
1 << 10
) - Compressed = Bit 11 (
1 << 11
) - Converted = Bit 12 (
1 << 12
) - OptimizedForClearType = Bit 13 (
1 << 13
) - LastResortFont = Bit 14 (
1 << 14
) - Reserved15 = Bit 15 (
1 << 15
)
Enum Ot.Head.MacStyle
- Bold = Bit 0 (
1 << 0
) - Italic = Bit 1 (
1 << 1
) - Underline = Bit 2 (
1 << 2
) - Outline = Bit 3 (
1 << 3
) - Shadow = Bit 4 (
1 << 4
) - Condensed = Bit 5 (
1 << 5
) - Extended = Bit 6 (
1 << 6
)
Enum Ot.Head.FontDirectionHint
- FullyMixed = 0
- OnlyStrongLTR = 1
- StrongLTROrNeutral = 2
- OnlyStrongRTL = -1
- StrongRTLOrNeutral = -2