[]
Creates a subset of the font containing the specified glyphs, then serializes the subset to a byte array.
public byte[] GlyphsToArray(Font font, HashSet<ushort> glyphIDs, FontSubsetFlags subsetFlags = FontSubsetFlags.PdfRenderer)
Public Function GlyphsToArray(font As Font, glyphIDs As HashSet(Of UShort), Optional subsetFlags As FontSubsetFlags = FontSubsetFlags.PdfRenderer) As Byte()
| Type | Name | Description |
|---|---|---|
| Font | font | The Font object to serialize. |
| HashSet<ushort> | glyphIDs | Glyph indices to be added to the resulting font subset. |
| FontSubsetFlags | subsetFlags | Font serialization options. |
| Type | Description |
|---|---|
| byte[] | Binary data with the resulting font subset. |