From 4a104021697439fd21390a1f4cdc9310348882fa Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 2 Apr 2016 13:47:59 +0000 Subject: [PATCH] Hide justification behind HB_DIRECTWRITE_EXPERIMENTAL_JUSTIFICATION --- src/hb-directwrite.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-directwrite.cc b/src/hb-directwrite.cc index 94f68fb25..1d8ad33f1 100644 --- a/src/hb-directwrite.cc +++ b/src/hb-directwrite.cc @@ -25,7 +25,7 @@ #define HB_SHAPER directwrite #include "hb-shaper-impl-private.hh" -#ifdef HB_DIRECWRITE_PRE_WINDOWS8_COMPATIBLE +#ifndef HB_DIRECTWRITE_EXPERIMENTAL_JUSTIFICATION #include #else #include @@ -602,7 +602,7 @@ _hb_directwrite_shape(hb_shape_plan_t *shape_plan, hb_directwrite_shaper_font_data_t *font_data = HB_SHAPER_DATA_GET (font); // factory probably should be cached -#ifdef HB_DIRECWRITE_PRE_WINDOWS8_COMPATIBLE +#ifndef HB_DIRECTWRITE_EXPERIMENTAL_JUSTIFICATION IDWriteFactory* dwriteFactory; #else IDWriteFactory1* dwriteFactory; @@ -618,7 +618,7 @@ _hb_directwrite_shape(hb_shape_plan_t *shape_plan, IDWriteFontFace* fontFace; gdiInterop->CreateFontFaceFromHdc (font_data->hdc, &fontFace); -#ifdef HB_DIRECWRITE_PRE_WINDOWS8_COMPATIBLE +#ifndef HB_DIRECTWRITE_EXPERIMENTAL_JUSTIFICATION IDWriteTextAnalyzer* analyzer; dwriteFactory->CreateTextAnalyzer(&analyzer); #else @@ -799,7 +799,7 @@ retry_getglyphs: return false; } -#ifndef HB_DIRECWRITE_PRE_WINDOWS8_COMPATIBLE +#ifdef HB_DIRECTWRITE_EXPERIMENTAL_JUSTIFICATION DWRITE_JUSTIFICATION_OPPORTUNITY* justificationOpportunities = (DWRITE_JUSTIFICATION_OPPORTUNITY*)