Exemplo n.º 1
0
        private static NameTable ReadNameTable(string path, FontReader reader, IReadOnlyDictionary <string, TableRecordEntry> entries)
        {
            if (entries.TryGetValue("name", out var cmapEntry))
            {
                reader.Seek(cmapEntry.Offset);
                return(NameTable.FromReader(reader));
            }

            throw new Exception(
                      $"Font {path} does not contain a Name Table (name)");
        }