From 762dce10221fb58420527d8554cd5960c03e0eda Mon Sep 17 00:00:00 2001 From: ishmal Date: Mon, 26 Feb 2007 06:01:54 +0000 Subject: [PATCH] Check for GGO_UNHINTED not being defined --- src/libnrtype/FontInstance.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libnrtype/FontInstance.cpp b/src/libnrtype/FontInstance.cpp index 615ddb685..574a76f62 100644 --- a/src/libnrtype/FontInstance.cpp +++ b/src/libnrtype/FontInstance.cpp @@ -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); -- 2.30.2