Esempio n. 1
0
        // Not used. This value should be equal to glyph count in Coverage.
        // Keeping it for future reference
        //private ushort AlternateSetCount(FontTable Table)
        //{
        //    return Table.GetUShort(offset + offsetAlternateSetCount);
        //}

        private AlternateSetTable AlternateSet(FontTable Table, int index)
        {
            return(new AlternateSetTable(offset +
                                         Table.GetUShort(offset +
                                                         offsetAlternateSets +
                                                         index * sizeAlternateSetOffset)
                                         ));
        }
Esempio n. 2
0
        // Not used. This value should be equal to glyph count in Coverage.
        // Keeping it for future reference
        //private ushort SequenceCount(FontTable Table)
        //{
        //    return Table.GetUShort(offset + offsetSequenceCount);
        //}

        private MultipleSubstitutionSequenceTable Sequence(FontTable Table, int Index)
        {
            return(new MultipleSubstitutionSequenceTable(
                       offset +
                       Table.GetUShort(offset +
                                       offsetSequenceArray +
                                       Index * sizeSequenceOffset)
                       ));
        }
Esempio n. 3
0
            public ushort Alternate(FontTable Table, uint FeatureParam)
            {
                Invariant.Assert(FeatureParam > 0); // Parameter 0 means feautre is disabled.
                //Should be filtered out in GetNextEnabledGlyphRange

                // Off by one - alternate number 1 is stored under index 0
                uint index = FeatureParam - 1;

                if (index >= GlyphCount(Table))
                {
                    return(AlternateSubstitutionSubtable.InvalidAlternateGlyph);
                }

                return(Table.GetUShort(offset + offsetGlyphs + (ushort)index * sizeGlyph));
            }
Esempio n. 4
0
 private LigatureSetTable LigatureSet(FontTable Table, ushort Index)
 {
     return new LigatureSetTable(offset+Table.GetUShort(offset+
                                                        offsetLigatureSetArray + 
                                                        Index * sizeLigatureSet));
 }
Esempio n. 5
0
 public LigatureTable Ligature(FontTable Table, ushort Index)
 {
     return new LigatureTable(offset + Table.GetUShort(offset + 
         offsetLigatureArray + 
         Index * sizeLigatureOffset));
 }
Esempio n. 6
0
 public LigatureTable Ligature(FontTable Table, ushort Index)
 {
     return(new LigatureTable(offset + Table.GetUShort(offset +
                                                       offsetLigatureArray +
                                                       Index * sizeLigatureOffset)));
 }
Esempio n. 7
0
        public CoverageChainingSubtable(FontTable Table, int Offset)
        { 
            offset = Offset;
            offsetInputGlyphCount = offsetBacktrackGlyphCount + sizeGlyphCount + 
                                      Table.GetUShort(offset+offsetBacktrackGlyphCount) * 
                                                                    sizeCoverageOffset;
 
            offsetLookaheadGlyphCount = offsetInputGlyphCount + sizeGlyphCount +
                                          Table.GetUShort(offset+offsetInputGlyphCount) *
                                                                   sizeCoverageOffset;
        } 
Esempio n. 8
0
 public ushort GlyphCount(FontTable Table)
 {
     return Table.GetUShort(offset + offsetGlyphCount);
 }
Esempio n. 9
0
 public static ushort GlyphCount(FontTable Table, int Offset) 
 {
     return Table.GetUShort(Offset); 
 }
Esempio n. 10
0
 // Not used. This value should be equal to glyph count in Coverage.
 // Keeping it for future reference
 //private ushort Foramt2GlyphCount(FontTable Table)
 //{
 //    Debug.Assert(Format(Table)==2);
 //    return Table.GetUShort(offset + offsetFormat2GlyphCount);
 //}
 private ushort Format2SubstituteGlyphId(FontTable Table, ushort Index)
 {
     Invariant.Assert(Format(Table) == 2);
     return(Table.GetUShort(offset + offsetFormat2SubstitutehArray +
                            Index * sizeFormat2SubstituteSize));
 }
Esempio n. 11
0
 public ushort Format(FontTable Table)
 {
     return Table.GetUShort(offset + offsetFormat);
 }
Esempio n. 12
0
 public ushort Glyph(FontTable Table, ushort index)
 {
     return(Table.GetUShort(offset + offsetGlyphArray + index * sizeGlyphId));
 }
Esempio n. 13
0
 private LigatureSetTable LigatureSet(FontTable Table, ushort Index)
 {
     return(new LigatureSetTable(offset + Table.GetUShort(offset +
                                                          offsetLigatureSetArray +
                                                          Index * sizeLigatureSet)));
 }
Esempio n. 14
0
 public ushort Component(FontTable Table, ushort Index)
 {
     //LigaTable includes comps from 1 to N. So, (Index-1)
     return(Table.GetUShort(offset + offsetComponentArray +
                            (Index - 1) * sizeComponent));
 }
Esempio n. 15
0
 public ushort ComponentCount(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetComponentCount));
 }
Esempio n. 16
0
 public ushort LigatureGlyph(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetLigatureGlyph));
 }
Esempio n. 17
0
 public ushort ComponentCount(FontTable Table)
 {
     return Table.GetUShort(offset + offsetComponentCount);
 }
Esempio n. 18
0
 public ushort Format(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetFormat));
 }
Esempio n. 19
0
 public ushort Glyph(FontTable Table, ushort index)
 {
     return Table.GetUShort(offset + offsetGlyphArray + index * sizeGlyphId);
 }
Esempio n. 20
0
 private CoverageTable Coverage(FontTable Table)
 {
     return(new CoverageTable(offset + Table.GetUShort(offset + offsetCoverage)));
 }
Esempio n. 21
0
 // Not used. This value should be equal to glyph count in Coverage.
 // Keeping it for future reference
 //private ushort Foramt2GlyphCount(FontTable Table)
 //{
 //    Debug.Assert(Format(Table)==2);
 //    return Table.GetUShort(offset + offsetFormat2GlyphCount);
 //}       
 private ushort Format2SubstituteGlyphId(FontTable Table,ushort Index)
 {
     Invariant.Assert(Format(Table)==2);
     return Table.GetUShort(offset + offsetFormat2SubstitutehArray + 
                                     Index * sizeFormat2SubstituteSize);
 }
Esempio n. 22
0
 public ContextualLookupRecords ContextualLookups(FontTable Table, int CurrentOffset)
 { 
     return new ContextualLookupRecords(CurrentOffset + sizeCount,
         Table.GetUShort(CurrentOffset));
 }
Esempio n. 23
0
 private ushort LigatureSetCount(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetLigatureSetCount));
 }
Esempio n. 24
0
 public CoverageTable LookaheadCoverage(FontTable Table, ushort Index)
 { 
     return new CoverageTable(offset +
                                 Table.GetUShort(offset+ 
                                                 offsetLookaheadGlyphCount + 
                                                 sizeGlyphCount +
                                                 Index*sizeCoverageOffset) 
                             );
 }
Esempio n. 25
0
 public static ushort ClassId(FontTable Table, int Offset)
 { 
     return Table.GetUShort(Offset);
 } 
Esempio n. 26
0
 public ushort LigatureCount(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetLigatureCount));
 }
Esempio n. 27
0
 public CoverageTable BacktrackCoverage(FontTable Table, ushort Index) 
 {
     return new CoverageTable(offset +
                                 Table.GetUShort(offset+
                                                 offsetBacktrackGlyphCount + 
                                                 sizeGlyphCount +
                                                 Index*sizeCoverageOffset) 
                             ); 
 }
Esempio n. 28
0
 public ushort GlyphCount(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetGlyphCount));
 }
Esempio n. 29
0
 public ContextualLookupRecords ContextualLookups(FontTable Table) 
 {
     int recordCountOffset = offset + offsetLookaheadGlyphCount + sizeGlyphCount + 
                             LookaheadGlyphCount(Table) * sizeCoverageOffset; 
     return new ContextualLookupRecords(recordCountOffset+sizeGlyphCount,
                                         Table.GetUShort(recordCountOffset)); 
 }
Esempio n. 30
0
 private ushort LookupIndex(FontTable Table, ushort Index)
 { 
     return Table.GetUShort(offset + Index*sizeLookupRecord + offsetLookupIndex);
 }
Esempio n. 31
0
 private ushort LigatureSetCount(FontTable Table)
 {
     return Table.GetUShort(offset + offsetLigatureSetCount);
 }
Esempio n. 32
0
 private ClassDefTable BacktrackClassDef(FontTable Table)
 {
     return new ClassDefTable(offset + 
                                 Table.GetUShort(offset +
                                                 offsetBacktrackClassDef) 
                             ); 
 }
Esempio n. 33
0
 public ushort LigatureCount(FontTable Table)
 {
     return Table.GetUShort(offset + offsetLigatureCount);
 }
Esempio n. 34
0
 private ClassDefTable InputClassDef(FontTable Table)
 {
     return new ClassDefTable(offset +
                                 Table.GetUShort(offset + 
                                                 offsetInputClassDef)
                             ); 
 } 
Esempio n. 35
0
 public ushort LigatureGlyph(FontTable Table)
 {
     return Table.GetUShort(offset + offsetLigatureGlyph);
 }
Esempio n. 36
0
 private ClassDefTable LookaheadClassDef(FontTable Table) 
 {
     return new ClassDefTable(offset +
                                 Table.GetUShort(offset +
                                                 offsetLookaheadClassDef) 
                             );
 } 
Esempio n. 37
0
 public ushort Component(FontTable Table, ushort Index)
 {
     //LigaTable includes comps from 1 to N. So, (Index-1)
     return Table.GetUShort(offset + offsetComponentArray +
         (Index-1) * sizeComponent);
 }
Esempio n. 38
0
 private ushort ClassSetCount(FontTable Table)
 { 
     return Table.GetUShort(offset + offsetSubClassSetCount);
 }
Esempio n. 39
0
 // Not used. This value should be equal to glyph count in Coverage.
 // Keeping it for future reference
 //private ushort SequenceCount(FontTable Table)
 //{
 //    return Table.GetUShort(offset + offsetSequenceCount);
 //}
 
 private MultipleSubstitutionSequenceTable Sequence(FontTable Table, int Index)
 {
     return new MultipleSubstitutionSequenceTable(
                                 offset + 
                                 Table.GetUShort(offset +
                                                 offsetSequenceArray +
                                                 Index * sizeSequenceOffset)
                                );
 }
Esempio n. 40
0
 private SubClassSet ClassSet(FontTable Table, ushort Index) 
 {
     int ClassSetOffset = Table.GetUShort(offset + offsetSubClassSetArray + 
                                          Index * sizeClassSetOffset); 
     if (ClassSetOffset==0)
         return new SubClassSet(FontTable.InvalidOffset); 
     else
         return new SubClassSet(offset + ClassSetOffset);
 }
Esempio n. 41
0
 private CoverageTable Coverage(FontTable Table)
 {
     return new CoverageTable(offset + Table.GetUShort(offset + offsetCoverage));
 }
Esempio n. 42
0
 public ushort RuleCount(FontTable Table)
 { 
     return Table.GetUShort(offset+offsetRuleCount);
 }
Esempio n. 43
0
 // Not used. This value should be equal to glyph count in Coverage.
 // Keeping it for future reference
 //private ushort AlternateSetCount(FontTable Table)
 //{
 //    return Table.GetUShort(offset + offsetAlternateSetCount);
 //}
 
 private AlternateSetTable AlternateSet(FontTable Table, int index)
 {
     return new AlternateSetTable(offset + 
                                  Table.GetUShort(offset + 
                                                  offsetAlternateSets +
                                                  index * sizeAlternateSetOffset)
                                 );
 }
Esempio n. 44
0
 public SubClassRule Rule(FontTable Table, ushort Index) 
 {
     return new SubClassRule(offset + Table.GetUShort(offset + offsetRuleArray + 
                                                       Index*sizeRuleOffset)); 
 }
Esempio n. 45
0
            public ushort Alternate(FontTable Table, uint FeatureParam)
            {
                Invariant.Assert(FeatureParam > 0); // Parameter 0 means feautre is disabled.
                                                //Should be filtered out in GetNextEnabledGlyphRange

                // Off by one - alternate number 1 is stored under index 0
                uint index = FeatureParam - 1;
                
                if (index >= GlyphCount(Table)) 
                {
                    return AlternateSubstitutionSubtable.InvalidAlternateGlyph;
                }
                
                return Table.GetUShort(offset + offsetGlyphs + (ushort)index*sizeGlyph);
            }
 private ushort Format(FontTable Table)
 {
     return Table.GetUShort(offset + offsetFormat);
 }