Example #1
0
            // constructor
            public hmtx_cache(Table_hmtx OwnerTable)
            {
                // assign
                m_hheaTable         = OwnerTable.hheaTable;
                m_nGlyphsInTheFont  = OwnerTable.numOfGlyphsInTheFont;
                m_nNumberOfHMetrics = OwnerTable.numOfHMetrics;

                // For ease of use we will store all entrys as double entrys and fix up the single
                // entry arrays (left side bearing only ) when we write out the table
                m_longHorMetric = new ArrayList(m_nGlyphsInTheFont);
                for (ushort i = 0; i < m_nGlyphsInTheFont; i++)
                {
                    m_longHorMetric.Add(OwnerTable.GetOrMakeHMetric(i));
                }
            }
            // constructor
            public hmtx_cache(Table_hmtx OwnerTable)
            {
                // assign
                m_hheaTable = OwnerTable.hheaTable;
                m_nGlyphsInTheFont = OwnerTable.numOfGlyphsInTheFont;
                m_nNumberOfHMetrics = OwnerTable.numOfHMetrics;

                // For ease of use we will store all entrys as double entrys and fix up the single
                // entry arrays (left side bearing only ) when we write out the table
                m_longHorMetric = new ArrayList( m_nGlyphsInTheFont );
                for( ushort i = 0; i < m_nGlyphsInTheFont; i++ )
                {
                    m_longHorMetric.Add( OwnerTable.GetOrMakeHMetric( i ));                    
                }

                
            }