FontDescriptor

A font descriptor describes a font default metrics other information.

Public Structure FontDescriptor

  Public Ascent As Int32                '(Required, except for Type 3 fonts) The maximum height above the
                                        'baseline reached by glyphs in this font, excluding the height of
                                        'glyphs for accented characters.


  Public AvgWidth As Int32              '(Optional) The average width of glyphs in the font.
                                        'Default value: 0.


  Public BaseFont As String

  Public CapHeight As Int32             '(Required for fonts that have Latin characters, except for Type
                                        '3 fonts) The vertical coordinate of the top of flat capital
                                        'letters, measured from the baseline.


  Public Descent As Int32               '(Required, except for Type 3 fonts) The maximum depth below the
                                        'baseline reached by glyphs in this font. The value is a negative
                                        'number.


  Public FirstChar As Byte              'The first character code defined in the font's Widths array.

  Public Flags As Int32                 '(Required) A collection of flags defining various characteristics
                                        'of the font.


  Public FontBold As Boolean            'vbPDF Flag. True if font is bold.

  Public FontBBox As String             '(Required, except for Type 3 fonts) A rectangle, expressed in the
                                        'glyph coordinate system, specifying the font bounding box. This is
                                        'the smallest rectangle enclosing the shape that would result if all
                                        'of the glyphs of the font were placed with their origins coincident
                                        'and then filled.


  Public FontDictionaryName As String   'The name used to reference the font within the document Font
                                        'Dictionary. The FontDictionaryName is assigned to the font when
                                        'you call LoadFont.


  Public FontFace As String

  Public FontItalic As Boolean          'vbPDF Flag. True if font is italic.

  Public ItalicAngle As Int32           '(Required) The angle, expressed in degrees counterclockwise from
                                        'the vertical, of the dominant vertical strokes of the font. (For
                                        'example, the 9-o'clock position is 90 degrees, and the 3-o'clock
                                        'position is -90 degrees.) The value is negative for fonts that
                                        'slope to the right, as almost all italic fonts do.


  Public LastChar As Byte               'The last character code defined in the font's Widths array.

  Public Leading As Int32               'The spacing between baselines of consecutive lines of text.
                                        'Default value: 0.


  Public MaxWidth As Int32              '(Optional) The maximum width of glyphs in the font.
                                        'Default value: 0.


  Public MissingWidth As Int32          '(Optional) The width to use for character codes whose widths are not
                                        'specified in a font dictionary's Widths array. This has a
                                        'predictable effect only if all such codes map to glyphs whose
                                        'actual widths are the same as the value of the MissingWidth entry.
                                        'Default value: 0.


  Public StemH As Int32                 '(Optional) The thickness, measured vertically, of the dominant
                                        'horizontal stems of glyphs in the font. Default value: 0.


  Public StemV As Int32                 '(Required, except for Type 3 fonts) The thickness, measured
                                        'horizontally, of the dominant vertical stems of glyphs in the font.


  Public SubType As String

  Public Widths() As Int32              '(Required; indirect reference preferred). An array of
                                        '(LastChar - FirstChar + 1) widths, each element being the glyph
                                        'width for the character code that equals FirstChar plus the array
                                        'index. For character codes outside the range FirstChar to LastChar,
                                        'the width is 0. These widths are interpreted in glyph space as
                                        'specified by FontMatrix (unlike the widths of a Type 1 font, which
                                        'are in thousandths of a unit of text space).


  Public XHeight As Int32               '(Optional) The font's x height: the vertical coordinate of the
                                        'top of flat nonascending lowercase letters (like the letter x),
                                        'measured from the baseline, in fonts that have Latin characters.
                                        'Default value: 0.


End Structure