Delegate PdfMissingGlyphMapper
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Defines a method that substitutes text for a missing glyph in a PDF font.
public delegate string? PdfMissingGlyphMapper(string glyphText)
Parameters
glyphText
stringThe text to map.
Returns
- string
The substitution text.
Remarks
The method can return null
or empty string as the result of the mapping.
Text for different glyphs can be mapped to the same Unicode string.
The library uses such methods for the following purposes:
- as one of the string drawing options (see PdfStringDrawingOptions)
- as one of the text drawing options (see PdfTextDrawingOptions)
- as a parameter to text measuring methods (see MeasureText(string, PdfMissingGlyphMapper?) and GetTextWidth(string, PdfMissingGlyphMapper?))