Function ttf_parser::tables::cff::cff1::parse_cid_local_subrs
source ยท fn parse_cid_local_subrs<'a>(
data: &'a [u8],
glyph_id: GlyphId,
cid: &CIDMetadata<'_>,
) -> Option<Index<'a>>
Expand description
In CID fonts, to get local subroutines we have to:
- Find Font DICT index via FDSelect by GID.
- Get Font DICT data from FDArray using this index.
- Get a Private DICT offset from a Font DICT.
- Get a local subroutine offset from Private DICT.
- Parse a local subroutine at offset.