Click or drag to resize
Pdftools logo

Font Methods

The Font type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCreate

Create a new font object from font file data.

Supported formats are:
  • Type1
  • CFF
  • TrueType
  • OpenType
The returned font object is not yet used on any page, but it is associated with the given target document.
Public methodStatic memberCreateFromSystem

Create a new font object from an installed font.

The returned font object is not yet used on any page, but it is associated with the given target document.
Public methodEquals
(Inherited from NativeObject)
Public methodGetCharacterWidth

the width of a single glyph.

The width of a unicode character (in pt) relative to a font size of 1 pt.

If an error occurs (because the font or the owning document has already been closed) this method returns 0. But a return value of 0 is not generally an indication for failure.

Public methodGetHashCode
(Inherited from NativeObject)
Top
See Also