PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

TrueType collection fonts are not yet supported?

Open mcguu opened this issue 4 years ago • 1 comments

I want to use Microsoft YaHei font.

but it tells me TrueType collection fonts are not yet supported? how to use this font?

mcguu avatar Aug 12 '21 08:08 mcguu

TTC should be repacked to separated TTF. There is the sample with GDI+: https://forum.pdfsharp.net/viewtopic.php?f=8&t=3976 - without GDI+ it is necessary to read the collection header manually and use the same logic (repack separated TTFs).

AlexanderMagdysyuk avatar Aug 16 '21 08:08 AlexanderMagdysyuk