Interface IFont
Font base interface.
public interface IFont
Properties
Details
The font details.
FontDetails Details { get; }
Property Value
IsVertical
Is the font vertical.
bool IsVertical { get; }
Property Value
Name
The font name.
NameToken Name { get; }
Property Value
Methods
GetBoundingBox(int)
Get the font bounding box.
CharacterBoundingBox GetBoundingBox(int characterCode)
Parameters
characterCode
int
Returns
GetFontMatrix()
Get the font transformation matrix.
TransformationMatrix GetFontMatrix()
Returns
ReadCharacterCode(IInputBytes, out int)
Read the character code.
int ReadCharacterCode(IInputBytes bytes, out int codeLength)
Parameters
bytes
IInputBytescodeLength
int
Returns
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
intCharacter code in a PDF. Not to be confused with unicode.
path
IReadOnlyList<PdfSubpath>The normalized glyph path for the given character code.
Returns
TryGetPath(int, out IReadOnlyList<PdfSubpath>)
Returns the glyph path for the given character code.
bool TryGetPath(int characterCode, out IReadOnlyList<PdfSubpath> path)
Parameters
characterCode
intCharacter code in a PDF. Not to be confused with unicode.
path
IReadOnlyList<PdfSubpath>The glyph path for the given character code.
Returns
TryGetUnicode(int, out string)
Try get the unicode value.
bool TryGetUnicode(int characterCode, out string value)