[]
        
(Showing Draft Content)

FontHandler

DsPdfJS API v9.1.0


DsPdfJS API / FontHandler

Class: FontHandler

Represents and manages a Font used in a PdfDocument.

Extends

Accessors

embedMode

Get Signature

get embedMode(): FontEmbedMode | null

Gets or sets the font embedding mode. By default this property is unspecified (null), and the actual embedding mode depends on whether or not the Font is one of StandardPdfFont. For standard fonts, PdfDocument#standardFontEmbedMode determines the embedding mode. For all other fonts, PdfDocument#fontEmbedMode determines the embedding mode.

Returns

FontEmbedMode | null

Set Signature

set embedMode(value): void

Gets or sets the font embedding mode. By default this property is unspecified (null), and the actual embedding mode depends on whether or not the Font is one of StandardPdfFont. For standard fonts, PdfDocument#standardFontEmbedMode determines the embedding mode. For all other fonts, PdfDocument#fontEmbedMode determines the embedding mode.

Parameters
value

FontEmbedMode | null

Returns

void


font

Get Signature

get font(): Font

Gets the Font associated with this FontHandler.

Returns

Font


format

Set Signature

set format(value): void

Gets or sets the format used to represent the font in a document. If "null" (the default), PdfDocument#pdfFontFormat is used. Note that this property does not affect the 14 standard PDF fonts, those are always encoded as Type1.

Parameters
value

PdfFontFormat | null

Returns

void


id

Get Signature

get id(): number

Gets the reference to the object.

Returns

number

Inherited from

ObjectBase.id


om

Get Signature

get om(): ObjectManager

Gets the owner ObjectManager instance.

Returns

ObjectManager

Inherited from

ObjectBase.om


pdfFontFormat

Get Signature

get pdfFontFormat(): PdfFontFormat | null

Gets or sets the format used to represent the font in a document. If "null" (the default), PdfDocument#pdfFontFormat is used. Note that this property does not affect the 14 standard PDF fonts, those are always encoded as Type1.

Returns

PdfFontFormat | null


usedInDocument

Get Signature

get usedInDocument(): boolean

Gets a value indicating whether the current font is actually used in the document.

Returns

boolean

Methods

free()

free(): void

Detaches the object from the ObjectManager and deallocates its memory, if possible.

Returns

void

Inherited from

ObjectBase.free


rebind()

rebind(omTo): void

Rebinds the object from the current ObjectManager to the specified one.

Parameters

omTo

ObjectManager

The new ObjectManager for the object.

Returns

void

Inherited from

ObjectBase.rebind