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
FontInfoProvider
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
View Source
GetCharWidth(PDFFont, TTFontData, char)
Declaration
public abstract double GetCharWidth(PDFFont pdfFont, TTFontData fontData, char charCode)
Parameters
Returns
View Source
GetFontStream(TTFontData)
Declaration
public abstract MemoryStream GetFontStream(TTFontData data)
Parameters
Returns
View Source
GetGlyphWidth(PDFFont, TTFontData, int, char)
Declaration
public abstract double GetGlyphWidth(PDFFont pdfFont, TTFontData fontData, int glyph, char charC)
Parameters
Returns
View Source
GetKerning(PDFFont, TTFontData, char, char)
Declaration
public abstract int GetKerning(PDFFont pdfFont, TTFontData fontData, char leftChar, char rightChar)
Parameters
Returns
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
Returns