Skip to content

@pdfa-lab/fontkit / GlyphInfo

Class: GlyphInfo<ShaperInfoT> ​

Defined in: src/open-type/glyph-info.ts:10

Type Parameters ​

Type ParameterDefault type
ShaperInfoTnull

Constructors ​

Constructor ​

new GlyphInfo<ShaperInfoT>(font, id, codePoints?, features?): GlyphInfo<ShaperInfoT>

Defined in: src/open-type/glyph-info.ts:28

Parameters ​

ParameterTypeDefault value
fontTrueTypeFontundefined
idnumberundefined
codePointsnumber[][]
features?Features | keyof Features[]undefined

Returns ​

GlyphInfo<ShaperInfoT>

Properties ​

PropertyModifierTypeDefault valueDefined in
codePointspublicnumber[][]src/open-type/glyph-info.ts:31
cursiveAttachmentpublicnumber | nullundefinedsrc/open-type/glyph-info.ts:18
featurespublicFeatureFlagsundefinedsrc/open-type/glyph-info.ts:14
isBase?publicbooleanundefinedsrc/open-type/glyph-info.ts:23
isLigatedpublicbooleanundefinedsrc/open-type/glyph-info.ts:17
isLigature?publicbooleanundefinedsrc/open-type/glyph-info.ts:24
isMark?publicbooleanundefinedsrc/open-type/glyph-info.ts:25
isMultipliedpublicbooleanundefinedsrc/open-type/glyph-info.ts:22
ligatureComponentpublicnumber | nullundefinedsrc/open-type/glyph-info.ts:16
ligatureIDpublicnumber | nullundefinedsrc/open-type/glyph-info.ts:15
markAttachmentpublicnumber | nullundefinedsrc/open-type/glyph-info.ts:19
markAttachmentType?publicnumberundefinedsrc/open-type/glyph-info.ts:26
shaperInfopublicShaperInfoT | nullundefinedsrc/open-type/glyph-info.ts:20
substitutedpublicbooleanundefinedsrc/open-type/glyph-info.ts:21

Accessors ​

id ​

Get Signature ​

get id(): number

Defined in: src/open-type/glyph-info.ts:60

Returns ​

number

Set Signature ​

set id(id): void

Defined in: src/open-type/glyph-info.ts:64

Parameters ​
ParameterType
idnumber
Returns ​

void

Methods ​

copy() ​

copy(): GlyphInfo<ShaperInfoT>

Defined in: src/open-type/glyph-info.ts:94

Returns ​

GlyphInfo<ShaperInfoT>