mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Handling for broken fonts on win32.
This commit is contained in:
parent
d42df8065b
commit
688f14d50d
1 changed files with 3 additions and 0 deletions
|
|
@ -165,6 +165,9 @@ namespace DirectWriteTypeLayout
|
|||
ComSmartPtr<IDWriteFontFace> dwFontFace;
|
||||
dwFont->CreateFontFace (dwFontFace.resetAndGetPointerAddress());
|
||||
|
||||
if (dwFontFace == nullptr)
|
||||
return 1.0f;
|
||||
|
||||
DWRITE_FONT_METRICS dwFontMetrics;
|
||||
dwFontFace->GetMetrics (&dwFontMetrics);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue