示例#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)
                                         ));
        }
示例#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)
                       ));
        }
示例#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));
            }
示例#4
0
 private LigatureSetTable LigatureSet(FontTable Table, ushort Index)
 {
     return new LigatureSetTable(offset+Table.GetUShort(offset+
                                                        offsetLigatureSetArray + 
                                                        Index * sizeLigatureSet));
 }
示例#5
0
 public LigatureTable Ligature(FontTable Table, ushort Index)
 {
     return new LigatureTable(offset + Table.GetUShort(offset + 
         offsetLigatureArray + 
         Index * sizeLigatureOffset));
 }
示例#6
0
 public LigatureTable Ligature(FontTable Table, ushort Index)
 {
     return(new LigatureTable(offset + Table.GetUShort(offset +
                                                       offsetLigatureArray +
                                                       Index * sizeLigatureOffset)));
 }
示例#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;
        } 
示例#8
0
 public ushort GlyphCount(FontTable Table)
 {
     return Table.GetUShort(offset + offsetGlyphCount);
 }
示例#9
0
 public static ushort GlyphCount(FontTable Table, int Offset) 
 {
     return Table.GetUShort(Offset); 
 }
示例#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));
 }
示例#11
0
 public ushort Format(FontTable Table)
 {
     return Table.GetUShort(offset + offsetFormat);
 }
示例#12
0
 public ushort Glyph(FontTable Table, ushort index)
 {
     return(Table.GetUShort(offset + offsetGlyphArray + index * sizeGlyphId));
 }
示例#13
0
 private LigatureSetTable LigatureSet(FontTable Table, ushort Index)
 {
     return(new LigatureSetTable(offset + Table.GetUShort(offset +
                                                          offsetLigatureSetArray +
                                                          Index * sizeLigatureSet)));
 }
示例#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));
 }
示例#15
0
 public ushort ComponentCount(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetComponentCount));
 }
示例#16
0
 public ushort LigatureGlyph(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetLigatureGlyph));
 }
示例#17
0
 public ushort ComponentCount(FontTable Table)
 {
     return Table.GetUShort(offset + offsetComponentCount);
 }
示例#18
0
 public ushort Format(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetFormat));
 }
示例#19
0
 public ushort Glyph(FontTable Table, ushort index)
 {
     return Table.GetUShort(offset + offsetGlyphArray + index * sizeGlyphId);
 }
示例#20
0
 private CoverageTable Coverage(FontTable Table)
 {
     return(new CoverageTable(offset + Table.GetUShort(offset + offsetCoverage)));
 }
示例#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);
 }
示例#22
0
 public ContextualLookupRecords ContextualLookups(FontTable Table, int CurrentOffset)
 { 
     return new ContextualLookupRecords(CurrentOffset + sizeCount,
         Table.GetUShort(CurrentOffset));
 }
示例#23
0
 private ushort LigatureSetCount(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetLigatureSetCount));
 }
示例#24
0
 public CoverageTable LookaheadCoverage(FontTable Table, ushort Index)
 { 
     return new CoverageTable(offset +
                                 Table.GetUShort(offset+ 
                                                 offsetLookaheadGlyphCount + 
                                                 sizeGlyphCount +
                                                 Index*sizeCoverageOffset) 
                             );
 }
示例#25
0
 public static ushort ClassId(FontTable Table, int Offset)
 { 
     return Table.GetUShort(Offset);
 } 
示例#26
0
 public ushort LigatureCount(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetLigatureCount));
 }
示例#27
0
 public CoverageTable BacktrackCoverage(FontTable Table, ushort Index) 
 {
     return new CoverageTable(offset +
                                 Table.GetUShort(offset+
                                                 offsetBacktrackGlyphCount + 
                                                 sizeGlyphCount +
                                                 Index*sizeCoverageOffset) 
                             ); 
 }
示例#28
0
 public ushort GlyphCount(FontTable Table)
 {
     return(Table.GetUShort(offset + offsetGlyphCount));
 }
示例#29
0
 public ContextualLookupRecords ContextualLookups(FontTable Table) 
 {
     int recordCountOffset = offset + offsetLookaheadGlyphCount + sizeGlyphCount + 
                             LookaheadGlyphCount(Table) * sizeCoverageOffset; 
     return new ContextualLookupRecords(recordCountOffset+sizeGlyphCount,
                                         Table.GetUShort(recordCountOffset)); 
 }
示例#30
0
 private ushort LookupIndex(FontTable Table, ushort Index)
 { 
     return Table.GetUShort(offset + Index*sizeLookupRecord + offsetLookupIndex);
 }
示例#31
0
 private ushort LigatureSetCount(FontTable Table)
 {
     return Table.GetUShort(offset + offsetLigatureSetCount);
 }
示例#32
0
 private ClassDefTable BacktrackClassDef(FontTable Table)
 {
     return new ClassDefTable(offset + 
                                 Table.GetUShort(offset +
                                                 offsetBacktrackClassDef) 
                             ); 
 }
示例#33
0
 public ushort LigatureCount(FontTable Table)
 {
     return Table.GetUShort(offset + offsetLigatureCount);
 }
示例#34
0
 private ClassDefTable InputClassDef(FontTable Table)
 {
     return new ClassDefTable(offset +
                                 Table.GetUShort(offset + 
                                                 offsetInputClassDef)
                             ); 
 } 
示例#35
0
 public ushort LigatureGlyph(FontTable Table)
 {
     return Table.GetUShort(offset + offsetLigatureGlyph);
 }
示例#36
0
 private ClassDefTable LookaheadClassDef(FontTable Table) 
 {
     return new ClassDefTable(offset +
                                 Table.GetUShort(offset +
                                                 offsetLookaheadClassDef) 
                             );
 } 
示例#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);
 }
示例#38
0
 private ushort ClassSetCount(FontTable Table)
 { 
     return Table.GetUShort(offset + offsetSubClassSetCount);
 }
示例#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)
                                );
 }
示例#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);
 }
示例#41
0
 private CoverageTable Coverage(FontTable Table)
 {
     return new CoverageTable(offset + Table.GetUShort(offset + offsetCoverage));
 }
示例#42
0
 public ushort RuleCount(FontTable Table)
 { 
     return Table.GetUShort(offset+offsetRuleCount);
 }
示例#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)
                                 );
 }
示例#44
0
 public SubClassRule Rule(FontTable Table, ushort Index) 
 {
     return new SubClassRule(offset + Table.GetUShort(offset + offsetRuleArray + 
                                                       Index*sizeRuleOffset)); 
 }
示例#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);
 }