mono / libgdiplus

C-based implementation of the GDI+ API
http://www.mono-project.com/
MIT License
329 stars 171 forks source link

GdipPrivateAddFontFile broken on some platforms #716

Open directhex opened 2 years ago

directhex commented 2 years ago

Under circumstances I haven't been able to pin down, creating a font collection and adding a font from disk to it does not result in a workable font.

In CI, this results in tests/testfont.c failing on GdipCreateFontFamilyFromName (CodeNewRoman, collection, &family); with FontFamilyNotFound on my Macbook but passing fine on my Ubuntu desktop.

This behaviour looks a LOT like the behaviour reported in https://github.com/dotnet/runtime/issues/26460 - and, indeed, the user's test code passes fine on my Ubuntu deskop but fails on my Macbook.