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.
Assembly: Reportman.Drawing.CrossPlatform.dll
Syntax
public class FontInfoFt : FontInfoProvider, IDisposable
Constructors
View Source
FontInfoFt()
Declaration
Fields
View Source
flag
Declaration
public static object flag
Field Value
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
View Source
FillFontData(PDFFont, TTFontData)
Declaration
public override void FillFontData(PDFFont pdfFont, TTFontData data)
Parameters
Overrides
View Source
GetCharWidth(PDFFont, TTFontData, char)
Declaration
public override double GetCharWidth(PDFFont pdfFont, TTFontData data, char charCode)
Parameters
Returns
Overrides
View Source
GetFontDirectories()
Declaration
public static Strings GetFontDirectories()
Returns
View Source
GetFontPath()
Declaration
public static string GetFontPath()
Returns
View Source
GetFontStream(TTFontData)
Declaration
public override MemoryStream GetFontStream(TTFontData data)
Parameters
Returns
Overrides
View Source
GetGlyphWidth(PDFFont, TTFontData, int, char)
Declaration
public override double GetGlyphWidth(PDFFont pdfFont, TTFontData fontData, int glyph, char charC)
Parameters
Returns
Overrides
View Source
GetKerning(PDFFont, TTFontData, char, char)
Declaration
public override int GetKerning(PDFFont pdfFont, TTFontData data, char leftChar, char rightChar)
Parameters
Returns
Overrides
View Source
StringToBytePtr(string)
Declaration
public static byte* StringToBytePtr(string str)
Parameters
| Type |
Name |
Description |
| string |
str |
|
Returns
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
Returns
Overrides
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
Returns
Implements