Search Results for

    Show / Hide Table of Contents

    Class FontInfoProvider

    Abstract provider of font metrics and text measurement; implementations supply character/glyph widths, kerning, text extent and font stream data for a given platform's font subsystem.

    Inheritance
    object
    FontInfoProvider
    FontInfoFt
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public abstract class FontInfoProvider

    Constructors

    View Source

    FontInfoProvider()

    Declaration
    protected FontInfoProvider()

    Methods

    View Source

    FillFontData(PDFFont, TTFontData)

    Declaration
    public abstract void FillFontData(PDFFont pdfFont, TTFontData fontData)
    Parameters
    Type Name Description
    PDFFont pdfFont
    TTFontData fontData
    View Source

    GetCharWidth(PDFFont, TTFontData, char)

    Declaration
    public abstract double GetCharWidth(PDFFont pdfFont, TTFontData fontData, char charCode)
    Parameters
    Type Name Description
    PDFFont pdfFont
    TTFontData fontData
    char charCode
    Returns
    Type Description
    double
    View Source

    GetFontStream(TTFontData)

    Declaration
    public abstract MemoryStream GetFontStream(TTFontData data)
    Parameters
    Type Name Description
    TTFontData data
    Returns
    Type Description
    MemoryStream
    View Source

    GetGlyphWidth(PDFFont, TTFontData, int, char)

    Declaration
    public abstract double GetGlyphWidth(PDFFont pdfFont, TTFontData fontData, int glyph, char charC)
    Parameters
    Type Name Description
    PDFFont pdfFont
    TTFontData fontData
    int glyph
    char charC
    Returns
    Type Description
    double
    View Source

    GetKerning(PDFFont, TTFontData, char, char)

    Declaration
    public abstract int GetKerning(PDFFont pdfFont, TTFontData fontData, char leftChar, char rightChar)
    Parameters
    Type Name Description
    PDFFont pdfFont
    TTFontData fontData
    char leftChar
    char rightChar
    Returns
    Type Description
    int
    View Source

    TextExtent(string, ref Rectangle, PDFFont, TTFontData, bool, bool, double, bool)

    Declaration
    public abstract List<LineInfo> TextExtent(string Text, ref Rectangle Rect, PDFFont pdfFont, TTFontData fontData, bool wordwrap, bool singleline, double FontSize, bool isHtml = false)
    Parameters
    Type Name Description
    string Text
    Rectangle Rect
    PDFFont pdfFont
    TTFontData fontData
    bool wordwrap
    bool singleline
    double FontSize
    bool isHtml
    Returns
    Type Description
    List<LineInfo>
    • View Source
    In this article
    Back to top Generated by DocFX