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:
parent
7aa7f49a8c
commit
37cc73ad9f
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue