public class CFFFont extends Object
| Modifier and Type | Class and Description | 
|---|---|
protected static class  |  
           CFFFont.DictNumberItem 
            
              A dictionary number on the list. 
               |  
          
protected static class  |  
           CFFFont.DictOffsetItem 
            
              an unknown offset in a dictionary for the list. 
               |  
          
protected class  |  
           CFFFont.Font 
            
              TODO Changed from private to protected by Ygal&Oren 
               |  
          
protected static class  |  
           CFFFont.IndexBaseItem  |  
          
protected static class  |  
           CFFFont.IndexMarkerItem  |  
          
protected static class  |  
           CFFFont.IndexOffsetItem 
            
              An index-offset item for the list. 
               |  
          
protected static class  |  
           CFFFont.Item 
            
              List items for the linked list that builds the new CID font. 
               |  
          
protected static class  |  
           CFFFont.MarkerItem 
            
              An offset-marker item for the list. 
               |  
          
protected static class  |  
           CFFFont.OffsetItem  |  
          
protected static class  |  
           CFFFont.RangeItem 
            
              A range item. 
               |  
          
protected static class  |  
           CFFFont.StringItem  |  
          
protected static class  |  
           CFFFont.SubrMarkerItem 
            
              TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments 
               |  
          
protected static class  |  
           CFFFont.UInt16Item 
            
              A SID or Card16 item. 
               |  
          
protected static class  |  
           CFFFont.UInt24Item 
            
              Card24 item. 
               |  
          
protected static class  |  
           CFFFont.UInt32Item 
            
              Card32 item. 
               |  
          
protected static class  |  
           CFFFont.UInt8Item 
            
              A Card8 item. 
               |  
          
| Modifier and Type | Field and Description | 
|---|---|
protected int |  
           arg_count  |  
          
protected Object[] |  
           args  |  
          
protected RandomAccessFileOrArray |  
           buf 
            
              A random Access File or an array 
               |  
          
protected CFFFont.Font[] |  
           fonts  |  
          
protected int |  
           gsubrIndexOffset  |  
          
protected int[] |  
           gsubrOffsets  |  
          
protected String |  
           key  |  
          
protected int |  
           nameIndexOffset  |  
          
protected int[] |  
           nameOffsets  |  
          
protected int |  
           stringIndexOffset  |  
          
protected int[] |  
           stringOffsets  |  
          
protected int |  
           topdictIndexOffset  |  
          
protected int[] |  
           topdictOffsets  |  
          
| Constructor and Description | 
|---|
CFFFont(RandomAccessFileOrArray inputbuffer)  |  
          
| Modifier and Type | Method and Description | 
|---|---|
boolean |  
           exists(String fontName)  |  
          
byte[] |  
           getCID(String fontName) 
            
              get a single CID font. 
               |  
          
protected void |  
           getDictItem()  |  
          
protected CFFFont.RangeItem |  
           getEntireIndexRange(int indexOffset) 
            
              a utility that creates a range item for an entire index 
               |  
          
String[] |  
           getNames()  |  
          
String |  
           getString(char sid)  |  
          
boolean |  
           isCID(String fontName)  |  
          
protected String key
protected Object[] args
protected int arg_count
protected RandomAccessFileOrArray buf
protected int nameIndexOffset
protected int topdictIndexOffset
protected int stringIndexOffset
protected int gsubrIndexOffset
protected int[] nameOffsets
protected int[] topdictOffsets
protected int[] stringOffsets
protected int[] gsubrOffsets
protected CFFFont.Font[] fonts
public CFFFont(RandomAccessFileOrArray inputbuffer)
public String getString(char sid)
protected void getDictItem()
protected CFFFont.RangeItem getEntireIndexRange(int indexOffset)
indexOffset - where the index is 
           public byte[] getCID(String fontName)
public boolean isCID(String fontName)
public boolean exists(String fontName)
public String[] getNames()
Copyright © 1998–2019. All rights reserved.