iTextSharp.text.pdf.TrueTypeFont.ReadGlyphWidths C# (CSharp) Метод

ReadGlyphWidths() защищенный Метод

protected ReadGlyphWidths ( ) : void
Результат void
        protected void ReadGlyphWidths()
        {
            int[] table_location;
            tables.TryGetValue("hmtx", out table_location);
            if (table_location == null)
                throw new DocumentException(MessageLocalization.GetComposedMessage("table.1.does.not.exist.in.2", "hmtx", fileName + style));
            rf.Seek(table_location[0]);
            GlyphWidths = new int[hhea.numberOfHMetrics];
            for (int k = 0; k < hhea.numberOfHMetrics; ++k) {
                GlyphWidths[k] = (rf.ReadUnsignedShort() * 1000) / head.unitsPerEm;
                rf.ReadUnsignedShort();
            }
        }