LayoutFarm/Typography

Implement TTC

FoggyFinder opened this issue ยท 3 comments

From ReadMe

1.Loads .ttf, .otf files, with OpenFontReader.

Does it mean there is no support for, let's say, .ttc format?

.ttcs have a ttcf table at the start.
Currently the reader expects an OS/2 table at the start.

for (int i = 0; i < tableCount; i++)
{
tables.AddEntry(new UnreadTableEntry(ReadTableHeader(input)));
}
//------------------------------------------------------------------
OS2Table os2Table = ReadTableIfExists(tables, input, new OS2Table());
NameEntry nameEntry = ReadTableIfExists(tables, input, new NameEntry());

So yeah, .ttcs are not supported right now. It can easily be implemented, though.

Thanks. I think it will be great to have ability to use .ttc too :)

see => d4b0ca1 and related commits in ttc branch