Code

Check for GGO_UNHINTED not being defined
authorishmal <ishmal@users.sourceforge.net>
Mon, 26 Feb 2007 06:01:54 +0000 (06:01 +0000)
committerishmal <ishmal@users.sourceforge.net>
Mon, 26 Feb 2007 06:01:54 +0000 (06:01 +0000)
src/libnrtype/FontInstance.cpp

index 615ddb685debbeaa8ae03d350db194f9a0ada02b..574a76f628c9f236c7fe0206799207b2988144c3 100644 (file)
@@ -432,6 +432,11 @@ void font_instance::LoadGlyph(int glyph_id)
                bool   doAdd=false;
 
 #ifdef USE_PANGO_WIN32
+
+#ifndef GGO_UNHINTED         // For compatibility with old SDKs.
+#define GGO_UNHINTED 0x0100
+#endif
+
         MAT2 identity = {{0,1},{0,0},{0,0},{0,1}};
         OUTLINETEXTMETRIC otm;
         GetOutlineTextMetrics(daddy->hScreenDC, sizeof(otm), &otm);