Return the glyph index corresponding to a character code point. Note, for AFM fonts, we treat the glyph index the same as the codepoint.
(self, # For consistency with FT2Font.
c: CharacterCodeType)
| 416 | return self._metrics[cast(CharacterCodeType, glyph_ind)].name |
| 417 | |
| 418 | def get_char_index(self, # For consistency with FT2Font. |
| 419 | c: CharacterCodeType) -> GlyphIndexType: |
| 420 | """ |
| 421 | Return the glyph index corresponding to a character code point. |
| 422 | |
| 423 | Note, for AFM fonts, we treat the glyph index the same as the codepoint. |
| 424 | """ |
| 425 | return cast(GlyphIndexType, c) |
| 426 | |
| 427 | def get_width_char(self, c: CharacterCodeType) -> float: |
| 428 | """Get the width of the character code from the character metric WX field.""" |
no outgoing calls