Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Text Namespace / Font Class
Properties Methods

In This Topic
    Font Class Members
    In This Topic

    The following tables list the members exposed by Font.

    Public Properties
     NameDescription
    Public PropertyGets the Average Character Width parameter specifies the arithmetic average of the escapement (width) of all non-zero width glyphs in the font.  
    Public PropertyGets a value indicating whether this font can be embedded.  
    Public PropertyGets a value indicating whether this font can be serialized as a subset of the source font data.  
    Public PropertyGets the metric specifying the distance between the baseline and the approximate height of uppercase letters measured in FUnits.  
    Public PropertyGets a value indicating if the font was loaded from .ttc or .otc font collection.  
    Public PropertyGets a value indicating if the font is in WOFF format.  
    Public PropertyGets or sets a value indicating if the TrueType glyph hinting instructions can be executed.

    By default hinting instructions are enabled, but note that only some TrueType fonts include such instructions. For fonts that do not include glyph instructions, this property will always return false.

    Also note that this property affects text drawing on GcBitmapGraphics only.

     
    Public PropertyGet the value classifying the font-family design.  
    Public PropertyGets the minimum Unicode index (character code) in this font.  
    Public PropertyGets the set of flags describing the font.  
    Public PropertyGets the value of the Bold flag from the OS/2 table data.  
    Public PropertyGets the source font data (null, if the font loaded from file).  
    Public PropertyGet the font family name. Up to four faces can share the same font family name.  
    Public PropertyGets the name of the associated font file.  
    Public PropertyGets the value of the Italic flag from the OS/2 table data.  
    Public PropertyGets the value of the Oblique flag from the OS/2 table data.  
    Public PropertyGets the path to the font file.  
    Public PropertyGets the revision number set by font manufacturer.  
    Public PropertyGets the full font name that reflects all family and relevant subfamily descriptors.  
    Public PropertyGets the hanging baseline, which is used in scripts like Devanagari, in design units relative to the Roman baseline.  
    Public PropertyGets a value indicating if characters are hollow (outlined), otherwise they are solid.  
    Public PropertyGets the typographic or legacy ascender for this font.  
    Public PropertyGets the typographic or legacy descender for this font.  
    Public PropertyGets the sum of HorizontalAscender and HorizontalDescender.  
    Public PropertyGets the typographic or legacy line gap for this font.  
    Public PropertyGets the recommended line spacing for single-spaced horizontal text.  
    Public PropertyGets the ideographic centered baseline, in design units relative to the Roman baseline.  
    Public PropertyGets the ideographic low baseline, in design units relative to the Roman baseline.  
    Public PropertyGets a value indicating if this font contains color glyphs.  
    Public PropertyFalse if the font is proportionally spaced, True if the font is not proportionally spaced (i.e. monospaced).  
    Public PropertyGets a value indicating whether the font-family design reflects the ISO Ornamental Class and the ISO Blackletter Class.  
    Public PropertyGets a value indicating whether the font-family design reflects the ISO Sans Serif Class.  
    Public PropertyGets a value indicating whether the font-family design reflects the ISO Script Class and Uncial Class.  
    Public PropertyGets a value indicating whether the font-family design reflects any of the Serif classes, except Sans Serif.  
    Public PropertyGets a value indicating whether this is a symbolic font suitable for Pi and special characters (icons, dingbats, technical symbols, etc.)  
    Public PropertyGets a value indicating if this is a vertical font.  
    Public PropertyGets the italic angle in counter-clockwise degrees from the vertical. Zero for upright text, negative for text that leans to the right (forward).  
    Public PropertyGets the maximum Unicode index (character code) in this font.  
    Public PropertyGets a value indicating if the glyphs encoded in the cmap subtables are simply generic symbolic representations of code point ranges and don’t truly represent support for those code points.  
    Public PropertyGets the array of localized font family names with associated language IDs.  
    Public PropertyGets the array of localized font names reflecting all family and relevant subfamily descriptors, with associated language IDs.  
    Public PropertyGets the array of localized names for the typographic family group, with associated language IDs.  
    Public PropertyGets the math baseline, in design units relative to the Roman baseline.  
    Public PropertyGets a value indicating if characters have their foreground and background reversed.  
    Public PropertyGets the number of glyphs in the Font.  
    Public PropertyGets the 10-byte series of numbers that is used to describe the visual characteristics of a typeface.  
    Public PropertyGets or sets a value indicating that the developer of the software has obtained explicit permission from the legal owner of the font to embed it in documents produced by the software.

    See https for details.

    The default is false.

     
    Public PropertyGets a value indicating if the current font contains PostScript outlines.  
    Public PropertyGets the metric specifying the distance between the baseline and the approximate height of non-ascending lowercase letters measured in FUnits.  
    Public PropertyGets a value indicating if characters are overstruck.  
    Public PropertyGets the position of the top of the strikethrough stroke relative to the baseline in font design units.  
    Public PropertyGets the thickness of the strikethrough stroke in font design units.  
    Public PropertyGets the recommended vertical offset in font design units from the baseline for subscripts for this font.  
    Public PropertyGets the recommended vertical size in font design units for subscripts for this font.  
    Public PropertyGets the recommended vertical offset in font design units from the baseline for superscripts for this font.  
    Public PropertyThe recommended vertical size in font design units for superscripts for this font.  
    Public PropertyGets or sets the custom data associated with the Font.  
    Public PropertyGets the typographic family grouping name.

    The typographic family grouping doesn't impose any constraints on the number of faces within it, in contrast with the 4-style family grouping.

     
    Public PropertyGets the suggested distance of the top of the underline from the baseline (negative values indicate below baseline).  
    Public PropertyGets the suggested value for the underline thickness.  
    Public PropertyGets a value indicating if characters are underscored.  
    Public PropertyGets the design units per Em, valid range is from 16 to 16384.  
    Public PropertyGets or sets a value indicating if the Bitmap Glyph Cache is enabled.

    This property affects text drawing on GcBitmapGraphics only.

     
    Public PropertyGets the version set by font manufacturer.  
    Public PropertyGets the vertical typographic ascender for this font.  
    Public PropertyGets the vertical typographic descender for this font.  
    Public PropertyGets the vertical typographic gap for this font.  
    Public PropertyGets the recommended line spacing for single-spaced vertical text.  
    Public PropertyGets the sum of VerticalAscender and VerticalDescender.  
    Public PropertyGet the value indicating the visual weight (degree of blackness or thickness of strokes) of the characters in the font.

    Values from 1 to 1000 are valid.

     
    Public PropertyGet the value indicating a relative change from the normal aspect ratio (width to height ratio) for the glyphs in a font.

    Values from 1 (UltraCondensed) to 9 (UltraExpanded) are expected.

     
    Top
    Public Methods
     NameDescription
    Public MethodAssociates user-defined characters from the specified EUDC Font to the current font.  
    Public MethodAdds a link to the specified Font.  
    Public MethodSearches for an associated EUDC Font containing the given code point.  
    Public MethodSearches for a linked Font containing the given code point.  
    Public MethodClears the list of the associated EUDC Fonts.  
    Public MethodClears the list of the linked Fonts.  
    Public Methodstatic (Shared in Visual Basic)Loads all Fonts from a byte array containing single font or a font collection.  
    Public Methodstatic (Shared in Visual Basic)Loads all Fonts from a specified font file.  
    Public Methodstatic (Shared in Visual Basic)Loads all Fonts from a specified stream containing single font or a font collection.  
    Public MethodReturns a value indicating whether the font can map the specified code point to a glyph.  
    Public MethodCreates an instance of the FontTables class for this font with the specified set of OpenType tables. Used to access information contained in the font's OpenType tables.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Loads the first Font from a byte array.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Loads the first Font from a specified file.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Loads a Font from the specified stream.  
    Public MethodGets a snapshot of the internal list of links to the associated EUDC fonts.  
    Public MethodGets a snapshot of the internal list of linked fonts.  
    Public MethodReturns the localized version of font family name for the specified language ID.  
    Public MethodGets a value indicating whether the font has the associated EUDC Fonts.  
    Public MethodGets a value indicating whether the font has linked Fonts.  
    Public MethodReturns True if the specified string matches the font family name or its local equivalent.  
    Public MethodRemoves association to the specified EUDC Font from the current font.  
    Public MethodRemoves a link to the specified Font.  
    Public MethodChecks whether the specified code page character range is considered functional (see Os2CodePageRange).  
    Public MethodChecks whether the specified Unicode range is considered functional (see Os2UnicodeRange).  
    Public MethodReturns a string that represents the Font.  
    Top
    See Also