Class CreateSubset


  • public class CreateSubset
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte[][] SubsetTables  
    • Constructor Summary

      Constructors 
      Constructor Description
      CreateSubset​(TTFont font, java.util.Set glyphIndices)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Set addCompositeGlyphs​(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] locations, java.util.Set glyphs)
      Add all dependent glyphs not yet included for any composite glyphs in the set of glyphs.
      protected void addCompositeGlyphs​(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] locations, java.util.Set glyphs, int codePoint)
      Add dependent glyphs not yet included for composite glyphs.
      TTFont compute()  
      protected TTFont copySubset()  
      protected void createGlyphTable​(TTTable loca, TTTable glyf, de.intarsys.tools.randomaccess.IRandomAccess glyfRandom, int[] oldLocations, java.util.Set glyphs, boolean shortFormat)  
      TTFont getFont()  
      java.util.Set getGlyphIndices()  
      TTFont getResult()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SubsetTables

        public static byte[][] SubsetTables
    • Constructor Detail

      • CreateSubset

        public CreateSubset​(TTFont font,
                            java.util.Set glyphIndices)
    • Method Detail

      • addCompositeGlyphs

        protected java.util.Set addCompositeGlyphs​(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom,
                                                   int[] locations,
                                                   java.util.Set glyphs)
                                            throws java.io.IOException,
                                                   TrueTypeException
        Add all dependent glyphs not yet included for any composite glyphs in the set of glyphs.
        Parameters:
        glyfRandom -
        locations -
        glyphs -
        Returns:
        Throws:
        java.io.IOException
        TrueTypeException
      • addCompositeGlyphs

        protected void addCompositeGlyphs​(de.intarsys.tools.randomaccess.IRandomAccess glyfRandom,
                                          int[] locations,
                                          java.util.Set glyphs,
                                          int codePoint)
                                   throws java.io.IOException,
                                          TrueTypeException
        Add dependent glyphs not yet included for composite glyphs.
        Parameters:
        glyfRandom -
        locations -
        glyphs -
        codePoint -
        Throws:
        java.io.IOException
        TrueTypeException
      • copySubset

        protected TTFont copySubset()
      • createGlyphTable

        protected void createGlyphTable​(TTTable loca,
                                        TTTable glyf,
                                        de.intarsys.tools.randomaccess.IRandomAccess glyfRandom,
                                        int[] oldLocations,
                                        java.util.Set glyphs,
                                        boolean shortFormat)
                                 throws java.io.IOException,
                                        TrueTypeException
        Throws:
        java.io.IOException
        TrueTypeException
      • getFont

        public TTFont getFont()
      • getGlyphIndices

        public java.util.Set getGlyphIndices()
      • getResult

        public TTFont getResult()