* Encode text to glyph IDs for PDF content stream. * * This is an internal method used when writing to the PDF. * With CIDToGIDMap /Identity, the content stream must contain GIDs. * * @internal
(text: string)
| 248 | * @internal |
| 249 | */ |
| 250 | encodeTextToGids(text: string): number[] { |
| 251 | return this.trackAndEncode(text).map(e => e.gid); |
| 252 | } |
| 253 | |
| 254 | /** |
| 255 | * Convert a code point to its glyph ID. |
no test coverage detected