1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

FreeType: Avoid scanning pfb/pcf fonts

Harfbuzz doesn't support these font formats, so attempting to shape text
using these kinds of fonts will fail.

I noticed this on Ubuntu 25.10 for Arm, which seems to include pfb and
otf versions of some fonts. The FontsDemo would assert in cases where
the pfb font was selected instead of the otf font.
This commit is contained in:
reuk 2025-10-14 18:51:37 +01:00
parent 7aa7f49a8c
commit 37cc73ad9f
No known key found for this signature in database

View file

@ -260,7 +260,7 @@ public:
{
for (const auto& iter : RangedDirectoryIterator (File::getCurrentWorkingDirectory().getChildFile (path), true))
{
if (iter.getFile().hasFileExtension ("ttf;pfb;pcf;otf"))
if (iter.getFile().hasFileExtension ("ttf;otf"))
scanFont (iter.getFile());
}
}