On Mac, I need to extract a ttf file from a ttc.
I use this code to do that.
int collectionIndex = 0
TtcFontSource source = new TtcFontSource(fontPath);
FontDefinition[] fds = source.GetFontDefinitions();
TtfFont ttfFont = Aspose.Font.Font.Open(fds[collectionIndex]) as TtfFont;
then on some ttc fonts, the ttfFont extracted have an empty PostScriptNames
Example :
Cambria.ttc is ok
Athelas is ok
AmericanTypewriter.ttc is KO
Copperplate.ttc is KO
…
image.png (164.1 KB)
With other libraries (like Typography.OpenFonts), I have the PostScriptName
@Whiletrue
Thank you for the details.
We were able to understand that the issue is occurring with AmericanTypewriter.ttc and Copperplate.ttc, while Cambria.ttc and Athelas seem to work fine at your side. However, we do not have the problematic TTC font files available at our end to reproduce the scenario.
Could you please share the sample AmericanTypewriter.ttc and Copperplate.ttc files with us in ZIP format? We will test the scenario in our environment and address it accordingly.
Please also share the complete code snippet that you are using, along with the collection index values for the affected fonts, so that we can investigate the case more precisely.