1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules/juce_graphics/native
reuk 54b157bb8c
DirectWriteTypeface: Use GDI fallback behaviour for missing fonts
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.
2024-09-18 15:44:05 +01:00
..
juce_CoreGraphicsContext_mac.h macOS: Simplify the CoreGraphics pointer types and add some new ones 2024-08-09 17:20:36 +01:00
juce_CoreGraphicsContext_mac.mm CoreGraphicsContext: Use CopyableHeapBlock for glyph positions 2024-09-18 15:44:05 +01:00
juce_CoreGraphicsHelpers_mac.h Update licensing information 2024-04-16 11:39:35 +01:00
juce_Direct2DGraphicsContext_windows.cpp Direct2D: Fix bug where Image::clear did not respect the requested area 2024-09-18 15:44:04 +01:00
juce_Direct2DGraphicsContext_windows.h D2D: Update Direct2DGraphicsContext::getPhysicalPixelScaleFactor to include context transform for consistency with other renderer backends 2024-04-29 16:08:23 +01:00
juce_Direct2DHelpers_windows.cpp Direct2D: Move UpdateRegion helper to shared DirectX header 2024-08-22 18:18:14 +01:00
juce_Direct2DHwndContext_windows.cpp Direct2D: Invalidate deviceContext when adapters change, to avoid referencing missing devices 2024-09-18 15:44:04 +01:00
juce_Direct2DHwndContext_windows.h Direct2D: Temporarily disable window transparency for D2D windows 2024-08-22 18:18:17 +01:00
juce_Direct2DImage_windows.cpp Direct2D: Add an assertion to warn when multiple Graphics instances are active on the same image 2024-09-18 15:44:04 +01:00
juce_Direct2DImage_windows.h Direct2D: Add an assertion to warn when multiple Graphics instances are active on the same image 2024-09-18 15:44:04 +01:00
juce_Direct2DImageContext_windows.cpp Direct2D: Correctly recreate ID2D1DeviceContext when moving transparent windows between devices 2024-09-05 12:16:02 +01:00
juce_Direct2DImageContext_windows.h Direct2D: Allow drawing to arbitrary bitmaps using Direct2DImageContext 2024-08-22 18:18:15 +01:00
juce_Direct2DMetrics_windows.cpp Direct2D: Add initial support 2024-04-18 14:16:02 +01:00
juce_Direct2DMetrics_windows.h Direct2D: Add initial support 2024-04-18 14:16:02 +01:00
juce_Direct2DResources_windows.cpp Direct2D: Correctly recreate ID2D1DeviceContext when moving transparent windows between devices 2024-09-05 12:16:02 +01:00
juce_DirectWriteTypeface_windows.cpp DirectWriteTypeface: Use GDI fallback behaviour for missing fonts 2024-09-18 15:44:05 +01:00
juce_DirectX_windows.h Direct2D: Add support for bitmaps spanning multiple texture pages 2024-09-18 15:44:04 +01:00
juce_EventTracing.h Direct2D: Add initial support 2024-04-18 14:16:02 +01:00
juce_Fonts_android.cpp Android: Fix issues with input stream special members 2024-09-05 12:17:12 +01:00
juce_Fonts_freetype.cpp FreeTypeTpeface: Avoid recreating FTTypefaceList at shutdown 2024-07-08 13:16:57 +01:00
juce_Fonts_linux.cpp Remove TextLayout::createNativeLayout() 2024-05-30 12:21:35 +01:00
juce_Fonts_mac.mm Fonts: Avoid calling deprecated CTFontManagerRegisterGraphicsFont 2024-09-18 15:44:05 +01:00
juce_GraphicsContext_android.cpp Typeface: Switch to using harfbuzz for computing simple advances on all platforms 2024-04-17 14:41:01 +01:00
juce_IconHelpers_android.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_IconHelpers_linux.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_IconHelpers_mac.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_IconHelpers_windows.cpp Update licensing information 2024-04-16 11:39:35 +01:00
juce_RenderingHelpers.h StackBasedLowLevelGraphicsContext: Prefer using RectangleListRegion clip when possible 2024-08-06 17:36:19 +01:00