Example #1
0
        private static KernTable ReadKernTable(FontReader reader, IReadOnlyDictionary <string, TableRecordEntry> entries)
        {
            if (entries.TryGetValue("kern", out var kernEntry))
            {
                reader.Seek(kernEntry.Offset);
                return(KernTable.FromReader(reader));
            }

            return(KernTable.Empty);
        }
Example #2
0
 private TrueTypeFont(string source, OffsetTable offsetTable, IReadOnlyDictionary <string, TableRecordEntry> entries, CmapTable cmapTable, NameTable nameTable, KernTable kernTable)
 {
     this.Source             = source;
     this.OffsetTable        = offsetTable;
     this.TableRecordEntries = entries;
     this.CmapTable          = cmapTable;
     this.NameTable          = nameTable;
     this.KernTable          = kernTable;
 }