mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-01 03:10:06 +00:00
Previously, when attempting to create a font with a name different to that of any font on the system, the returned typeface could be nullptr. This could lead to crashes when attempting to use the typeface. Now, if we fail to find a matching font using DirectWrite, we fall back to the older LOGFONT and DC approach, which will generally locate a usable typeface, though not necessarily an exact match. The new behaviour more closely matches the behaviour of JUCE 7, which would attempt to construct a DirectWrite typeface, but would fall back to creating an HFONT on failure. |
||
|---|---|---|
| .. | ||
| colour | ||
| contexts | ||
| detail | ||
| effects | ||
| fonts | ||
| geometry | ||
| image_formats | ||
| images | ||
| native | ||
| placement | ||
| unicode | ||
| juce_graphics.cpp | ||
| juce_graphics.h | ||
| juce_graphics.mm | ||
| juce_graphics_Harfbuzz.cpp | ||