Table of Contents

Interface IFont

Namespace
UglyToad.PdfPig.PdfFonts
Assembly
UglyToad.PdfPig.dll

Font base interface.

public interface IFont

Properties

Details

The font details.

FontDetails Details { get; }

Property Value

FontDetails

IsVertical

Is the font vertical.

bool IsVertical { get; }

Property Value

bool

Name

The font name.

NameToken Name { get; }

Property Value

NameToken

Methods

GetBoundingBox(int)

Get the font bounding box.

CharacterBoundingBox GetBoundingBox(int characterCode)

Parameters

characterCode int

Returns

CharacterBoundingBox

GetFontMatrix()

Get the font transformation matrix.

TransformationMatrix GetFontMatrix()

Returns

TransformationMatrix

ReadCharacterCode(IInputBytes, out int)

Read the character code.

int ReadCharacterCode(IInputBytes bytes, out int codeLength)

Parameters

bytes IInputBytes
codeLength int

Returns

int

TryGetNormalisedPath(int, out IReadOnlyList<PdfSubpath>)

Returns the normalised glyph path for the given character code in a PDF.

bool TryGetNormalisedPath(int characterCode, out IReadOnlyList<PdfSubpath> path)

Parameters

characterCode int

Character code in a PDF. Not to be confused with unicode.

path IReadOnlyList<PdfSubpath>

The normalized glyph path for the given character code.

Returns

bool

TryGetPath(int, out IReadOnlyList<PdfSubpath>)

Returns the glyph path for the given character code.

bool TryGetPath(int characterCode, out IReadOnlyList<PdfSubpath> path)

Parameters

characterCode int

Character code in a PDF. Not to be confused with unicode.

path IReadOnlyList<PdfSubpath>

The glyph path for the given character code.

Returns

bool

TryGetUnicode(int, out string)

Try get the unicode value.

bool TryGetUnicode(int characterCode, out string value)

Parameters

characterCode int
value string

Returns

bool