зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1270688. Use system host settings for skia dwrite font settings. r=lsalzman
This commit is contained in:
Родитель
3bb1e11276
Коммит
429347899e
|
@ -73,6 +73,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] in {
|
|||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||
DEFINES['UNICODE'] = True
|
||||
DEFINES['_UNICODE'] = True
|
||||
DEFINES['SK_FONT_HOST_USE_SYSTEM_SETTINGS'] = 1
|
||||
UNIFIED_SOURCES += [
|
||||
'skia/src/fonts/SkFontMgr_indirect.cpp',
|
||||
'skia/src/fonts/SkRemotableFontMgr.cpp',
|
||||
|
|
|
@ -609,6 +609,7 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] in {
|
|||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||
DEFINES['UNICODE'] = True
|
||||
DEFINES['_UNICODE'] = True
|
||||
DEFINES['SK_FONT_HOST_USE_SYSTEM_SETTINGS'] = 1
|
||||
UNIFIED_SOURCES += [
|
||||
'skia/src/fonts/SkFontMgr_indirect.cpp',
|
||||
'skia/src/fonts/SkRemotableFontMgr.cpp',
|
||||
|
|
|
@ -266,7 +266,7 @@ void DWriteFontTypeface::onFilterRec(SkScalerContext::Rec* rec) const {
|
|||
rec->setHinting(h);
|
||||
|
||||
#if SK_FONT_HOST_USE_SYSTEM_SETTINGS
|
||||
IDWriteFactory* factory = get_dwrite_factory();
|
||||
IDWriteFactory* factory = sk_get_dwrite_factory();
|
||||
if (factory != nullptr) {
|
||||
SkTScopedComPtr<IDWriteRenderingParams> defaultRenderingParams;
|
||||
if (SUCCEEDED(factory->CreateRenderingParams(&defaultRenderingParams))) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче