Unable to add OTF font to StiFontCollection
Posted: Thu Aug 11, 2022 4:45 am
Hi,
Have tried a number of different ways to try and add an OTF font to StiFontCollection, eg.
StiFontCollection.AddFontFile($"/path/to/font.otf");
StiFontCollection.AddFontBytes();
StiFontCollection.AddResourceFont();
None of these add the font to the collection if it's an OTF (collection is empty).
If I switch to a TTF of the same font, it is added successfully when using all of the 3 methods above. This is using
Stimulsoft.Base, Version=2022.3.4.0 from stimulsoft.reports.engine.netcore\2022.3.4\lib\netstandard2.1\Stimulsoft.Base.dll
Here is an example font I am trying to use:
https://github.com/googlefonts/noto-cjk ... c-Bold.otf
Have tried a number of different ways to try and add an OTF font to StiFontCollection, eg.
StiFontCollection.AddFontFile($"/path/to/font.otf");
StiFontCollection.AddFontBytes();
StiFontCollection.AddResourceFont();
None of these add the font to the collection if it's an OTF (collection is empty).
If I switch to a TTF of the same font, it is added successfully when using all of the 3 methods above. This is using
Stimulsoft.Base, Version=2022.3.4.0 from stimulsoft.reports.engine.netcore\2022.3.4\lib\netstandard2.1\Stimulsoft.Base.dll
Here is an example font I am trying to use:
https://github.com/googlefonts/noto-cjk ... c-Bold.otf