1 Index: src/libnrtype/FontInstance.cpp
2 ===================================================================
3 --- src/libnrtype/FontInstance.cpp (revision 20075)
4 +++ src/libnrtype/FontInstance.cpp (working copy)
7 GetOutlineTextMetrics(daddy->hScreenDC, sizeof(otm), &otm);
9 - DWORD bufferSize=GetGlyphOutline (daddy->hScreenDC, glyph_id, GGO_GLYPH_INDEX | GGO_NATIVE | GGO_UNHINTED, &metrics, 0, NULL, &identity);
10 + DWORD bufferSize=GetGlyphOutline (daddy->hScreenDC, glyph_id, GGO_GLYPH_INDEX | GGO_NATIVE, &metrics, 0, NULL, &identity);
11 double scale=1.0/daddy->fontSize;
12 n_g.h_advance=metrics.gmCellIncX*scale;
13 n_g.v_advance=otm.otmTextMetrics.tmHeight*scale;
17 std::auto_ptr<char> buffer(new char[bufferSize]);
18 - if ( GetGlyphOutline (daddy->hScreenDC, glyph_id, GGO_GLYPH_INDEX | GGO_NATIVE | GGO_UNHINTED, &metrics, bufferSize, buffer.get(), &identity) <= 0 ) {
19 + if ( GetGlyphOutline (daddy->hScreenDC, glyph_id, GGO_GLYPH_INDEX | GGO_NATIVE, &metrics, bufferSize, buffer.get(), &identity) <= 0 ) {
22 // Platform SDK is rubbish, read KB87115 instead