aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/windows/native/sun/font/lcdglyphDW.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/native/sun/font/lcdglyphDW.cpp b/src/windows/native/sun/font/lcdglyphDW.cpp
index bfcb732885..6644d2644a 100644
--- a/src/windows/native/sun/font/lcdglyphDW.cpp
+++ b/src/windows/native/sun/font/lcdglyphDW.cpp
@@ -109,7 +109,7 @@ Java_sun_font_FileFontStrike__1getGlyphImageFromWindowsUsingDirectWrite
env->GetStringRegion(fontFamily, 0, nameLen, lf.lfFaceName);
lf.lfFaceName[nameLen] = '\0';
- HRESULT hr = DWriteCreateFactory(DWRITE_FACTORY_TYPE_ISOLATED,
+ HRESULT hr = DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED,
__uuidof(IDWriteFactory),
reinterpret_cast<IUnknown**>(&factory));
if (FAILED(hr)) {