Search Results for

    Show / Hide Table of Contents

    Class FontInfoFt

    Cross-platform FontInfoProvider built on FreeType, HarfBuzz and ICU that enumerates system fonts, supplies font metrics, glyph and kerning widths, subsetted font streams and performs BiDi/script-aware text layout (including HTML) for the PDF and rendering pipeline.

    Inheritance
    object
    FontInfoProvider
    FontInfoFt
    Implements
    IDisposable
    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.CrossPlatform.dll
    Syntax
    public class FontInfoFt : FontInfoProvider, IDisposable

    Constructors

    View Source

    FontInfoFt()

    Declaration
    public FontInfoFt()

    Fields

    View Source

    flag

    Declaration
    public static object flag
    Field Value
    Type Description
    object

    Methods

    View Source

    CheckFreeType(FT_Error)

    Declaration
    public static void CheckFreeType(FT_Error nerror)
    Parameters
    Type Name Description
    FT_Error nerror
    View Source

    Dispose()

    Declaration
    public void Dispose()
    View Source

    FillFontData(PDFFont, TTFontData)

    Declaration
    public override void FillFontData(PDFFont pdfFont, TTFontData data)
    Parameters
    Type Name Description
    PDFFont pdfFont
    TTFontData data
    Overrides
    FontInfoProvider.FillFontData(PDFFont, TTFontData)
    View Source

    GetCharWidth(PDFFont, TTFontData, char)

    Declaration
    public override double GetCharWidth(PDFFont pdfFont, TTFontData data, char charCode)
    Parameters
    Type Name Description
    PDFFont pdfFont
    TTFontData data
    char charCode
    Returns
    Type Description
    double
    Overrides
    FontInfoProvider.GetCharWidth(PDFFont, TTFontData, char)
    View Source

    GetFontDirectories()

    Declaration
    public static Strings GetFontDirectories()
    Returns
    Type Description
    Strings
    View Source

    GetFontPath()

    Declaration
    public static string GetFontPath()
    Returns
    Type Description
    string
    View Source

    GetFontStream(TTFontData)

    Declaration
    public override MemoryStream GetFontStream(TTFontData data)
    Parameters
    Type Name Description
    TTFontData data
    Returns
    Type Description
    MemoryStream
    Overrides
    FontInfoProvider.GetFontStream(TTFontData)
    View Source

    GetGlyphWidth(PDFFont, TTFontData, int, char)

    Declaration
    public override 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
    Overrides
    FontInfoProvider.GetGlyphWidth(PDFFont, TTFontData, int, char)
    View Source

    GetKerning(PDFFont, TTFontData, char, char)

    Declaration
    public override int GetKerning(PDFFont pdfFont, TTFontData data, char leftChar, char rightChar)
    Parameters
    Type Name Description
    PDFFont pdfFont
    TTFontData data
    char leftChar
    char rightChar
    Returns
    Type Description
    int
    Overrides
    FontInfoProvider.GetKerning(PDFFont, TTFontData, char, char)
    View Source

    StringToBytePtr(string)

    Declaration
    public static byte* StringToBytePtr(string str)
    Parameters
    Type Name Description
    string str
    Returns
    Type Description
    byte*
    View Source

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

    Declaration
    public override List<LineInfo> TextExtent(string Text, ref Rectangle Rect, PDFFont pdfFont, TTFontData fontData, bool wordwrap, bool singleline, double FontSize, bool isHtml)
    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>
    Overrides
    FontInfoProvider.TextExtent(string, ref Rectangle, PDFFont, TTFontData, bool, bool, double, bool)
    View Source

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

    Declaration
    public List<LineInfo> TextExtentHtml(string Text, ref Rectangle Rect, TTFontData adata, PDFFont pdfFont, bool wordwrap, bool singleline, double FontSize, bool isHtml = true)
    Parameters
    Type Name Description
    string Text
    Rectangle Rect
    TTFontData adata
    PDFFont pdfFont
    bool wordwrap
    bool singleline
    double FontSize
    bool isHtml
    Returns
    Type Description
    List<LineInfo>

    Implements

    IDisposable
    • View Source
    In this article
    Back to top Generated by DocFX