Class OpenTypeFontTableReader

    • Method Detail

      • getGlyph

        public Glyph getGlyph​(int index)
      • getScriptRecords

        public java.util.List<ScriptRecord> getScriptRecords()
      • getFeatureRecords

        public java.util.List<FeatureRecord> getFeatureRecords()
      • getFeatures

        public java.util.List<FeatureRecord> getFeatures​(java.lang.String[] scripts,
                                                         java.lang.String language)
      • getSpecificFeatures

        public java.util.List<FeatureRecord> getSpecificFeatures​(java.util.List<FeatureRecord> features,
                                                                 java.lang.String[] specific)
      • getRequiredFeature

        public FeatureRecord getRequiredFeature​(java.lang.String[] scripts,
                                                java.lang.String language)
      • isSkip

        public boolean isSkip​(int glyph,
                              int flag)
      • getGlyphClass

        public int getGlyphClass​(int glyphCode)
      • getUnitsPerEm

        public int getUnitsPerEm()
      • getLanguageRecord

        public LanguageRecord getLanguageRecord​(java.lang.String otfScriptTag)
      • getLanguageRecord

        public LanguageRecord getLanguageRecord​(java.lang.String otfScriptTag,
                                                java.lang.String langTag)
      • readLookupTable

        protected abstract OpenTableLookup readLookupTable​(int lookupType,
                                                           int lookupFlag,
                                                           int[] subTableLocations)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readClassDefinition

        protected final OtfClass readClassDefinition​(int classLocation)
      • readUShortArray

        protected final int[] readUShortArray​(int size,
                                              int location)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readUShortArray

        protected final int[] readUShortArray​(int size)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readCoverages

        protected void readCoverages​(int[] locations,
                                     java.util.List<java.util.Set<java.lang.Integer>> coverage)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readCoverageFormat

        protected final java.util.List<java.lang.Integer> readCoverageFormat​(int coverageLocation)
                                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readSubstLookupRecords

        protected SubstLookupRecord[] readSubstLookupRecords​(int substCount)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readPosLookupRecords

        protected PosLookupRecord[] readPosLookupRecords​(int substCount)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • readTagAndLocations

        protected TagAndLocation[] readTagAndLocations​(int baseLocation)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • readLookupListTable

        private void readLookupListTable​(int lookupListTableLocation)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • readLookupTable

        private void readLookupTable​(int lookupTableLocation)
                              throws java.io.IOException
        Throws:
        java.io.IOException