Class GlyphMappingTable

    • Field Detail

      • GLYPH_MAPPING_TYPE_EMPTY

        public static final int GLYPH_MAPPING_TYPE_EMPTY
        empty mapping table
        See Also:
        Constant Field Values
      • GLYPH_MAPPING_TYPE_MAPPED

        public static final int GLYPH_MAPPING_TYPE_MAPPED
        mapped mapping table
        See Also:
        Constant Field Values
      • GLYPH_MAPPING_TYPE_RANGE

        public static final int GLYPH_MAPPING_TYPE_RANGE
        range based mapping table
        See Also:
        Constant Field Values
    • Constructor Detail

      • GlyphMappingTable

        public GlyphMappingTable()
    • Method Detail

      • getType

        public int getType()
        Obtain mapping type.
        Returns:
        mapping format type
      • getEntries

        public java.util.List getEntries()
        Obtain mapping entries.
        Returns:
        list of mapping entries
      • getMappingSize

        public int getMappingSize()
        Obtain size of mapping table, i.e., ciMax + 1, where ciMax is the maximum mapping index.
        Returns:
        size of mapping table
      • getMappedIndex

        public int getMappedIndex​(int gid)
        Map glyph identifier (code) to coverge index. Returns -1 if glyph identifier is not in the domain of the mapping table.
        Parameters:
        gid - glyph identifier (code)
        Returns:
        non-negative glyph mapping index or -1 if glyph identifiers is not mapped by table