FontInfo

type FontInfo = object

Description

An object containing the font information.

Properties

m_wsFontNamestring

The font name.

m_wsFontPathstring

The path to the file with the current font.

m_lIndexnumber

The font number in the file if there is more than one font in the file.

m_bBoldboolean

Specifies if the font characters are bold or not.

m_bItalicboolean

Specifies if the font characters are italic or not.

m_bIsFixedboolean

Specifies if the current font is monospaced or not.

m_aPanosenumber[]

The PANOSE Typeface Classification Number, a compact 10-byte description of the font critical visual characteristics, such as contrast, weight, and serif style.

m_ulUnicodeRange1number

The Unicode range encompassed by the font file (Bits 0-31).

m_ulUnicodeRange2number

The Unicode range encompassed by the font file (Bits 32-63).

m_ulUnicodeRange3number

The Unicode range encompassed by the font file (Bits 64-95).

m_ulUnicodeRange4number

The Unicode range encompassed by the font file (Bits 96-127).

m_ulCodePageRange1number

The code pages encompassed by the font file (Bits 0-31).

m_ulCodePageRange2number

The code pages encompassed by the font file (Bits 32-63).

m_usWeigthnumber

The visual weight (stroke blackness or thickness) of the font characters (1-1000).

m_usWidthnumber

The relative change from the normal aspect ratio (width to height ratio).

m_sFamilyClassnumber

The font family class which values are assigned by IBM to each font family.

m_eFontFormatnumber

The specific file type(s) used to store font data: 0 - *.fon, 1 - *.ttf, 2 - *.ttf, *.otf (CFF), 3 - unknown font format.

m_shAvgCharWidthnumber

The arithmetic average of the escapement (width) of all non-zero width glyphs in the font.

m_shAscentnumber

The height above the baseline for a clipping region.

m_shDescentnumber

The vertical extent below the baseline for a clipping region.

m_shLineGapnumber

The typographic line gap for the current font.

m_shXHeightnumber

The distance between the baseline and the approximate height of non-ascending lowercase letters measured in FUnits.

m_shCapHeightnumber

The distance between the baseline and the approximate height of uppercase letters measured in FUnits.

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).