mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
FreeType: Enable non-scalable glyphs, required for png emoji support
This commit is contained in:
parent
72819437e7
commit
0da52a8e7b
1 changed files with 2 additions and 4 deletions
|
|
@ -132,7 +132,7 @@ public:
|
|||
scanFontPaths (getDefaultFontDirectories());
|
||||
}
|
||||
|
||||
~FTTypefaceList()
|
||||
~FTTypefaceList() override
|
||||
{
|
||||
clearSingletonInstance();
|
||||
}
|
||||
|
|
@ -337,8 +337,7 @@ private:
|
|||
if (faceIndex == 0)
|
||||
numFaces = (int) face->face->num_faces;
|
||||
|
||||
if ((face->face->face_flags & FT_FACE_FLAG_SCALABLE) != 0)
|
||||
faces.push_back (std::make_unique<FileTypeface> (*face, file));
|
||||
faces.push_back (std::make_unique<FileTypeface> (*face, file));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -424,7 +423,6 @@ public:
|
|||
return new FreeTypeTypeface (DoCache::yes, face, std::move (hb), face->face->family_name, face->face->style_name);
|
||||
}
|
||||
|
||||
|
||||
Native getNativeDetails() const override
|
||||
{
|
||||
return Native { hb.get() };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue