PdfType3Font.CreateGlyphFromUnicodeCodePoint Method
Overloads
| Name | Description |
|---|---|
| CreateGlyphFromUnicodeCodePoint(Byte,Int32) | Creates a PdfType3Glyph from the given code point and associates it with the given character code in this font. |
| CreateGlyphFromUnicodeCodePoint(Byte,Int32,Boolean) | Creates a PdfType3Glyph from the given code point and associates it with the given character code in this font. |
CreateGlyphFromUnicodeCodePoint(Byte,Int32)
Creates a PdfType3Glyph from the given code point and associates it with the given character code in this font.
Parameters
characterCode Byte
The character code in this font that is associated with the glyph image
codePoint Int32
Source code point for which the glyph image is extracted from the TrueType font
Remarks
This method can be used only if the PdfType3Font object has been created from a PdfTrueTypeFont object.
Example
// Creates a Type3 glyph for "A" character and sets its image to the hot dog emoji (0x1F32D Unicode code point) type3Font.CreateGlyphFromUnicodeCodePoint((byte)"A", 0x1F32D);
CreateGlyphFromUnicodeCodePoint(Byte,Int32,Boolean)
Creates a PdfType3Glyph from the given code point and associates it with the given character code in this font.
Parameters
characterCode Byte
The character code in this font that is associated with the glyph image
codePoint Int32
Source code point for which the glyph image is extracted from the TrueType font
coloredGlyph Boolean
True if the glyph contains color information, no if the glyph is painted using current fill color
Remarks
This method can be used only if the PdfType3Font object has been created from a PdfTrueTypeFont object.
Example
// Creates a Type3 glyph for "A" character and sets its image to the hot dog emoji (0x1F32D Unicode code point) type3Font.CreateGlyphFromUnicodeCodePoint(0x1F32D, 0x41, true);