]> git.imager.perl.org - imager.git/commitdiff
remove old #if ed out code
authorTony Cook <tony@develop=help.com>
Tue, 26 Apr 2005 09:07:39 +0000 (09:07 +0000)
committerTony Cook <tony@develop=help.com>
Tue, 26 Apr 2005 09:07:39 +0000 (09:07 +0000)
win32.c

diff --git a/win32.c b/win32.c
index 85a9a39d14fb07303287260760544ef4b28e87e8..f04cb06c5b16f29e3a6297eecf2f5acccd28b7f4 100644 (file)
--- a/win32.c
+++ b/win32.c
@@ -58,7 +58,6 @@ int i_wf_bbox(char *face, int size, char *text, int length, int *bbox) {
   dc = GetDC(NULL);
   oldFont = (HFONT)SelectObject(dc, font);
 
-#if 1
   if (!GetTextExtentPoint32(dc, text, length, &sz)
       || !GetTextMetrics(dc, &tm)) {
     SelectObject(dc, oldFont);
@@ -83,27 +82,6 @@ int i_wf_bbox(char *face, int size, char *text, int length, int *bbox) {
   else {
     bbox[0] = 0;
   }
-#else
-  for (i = 0; i < length; ++i) {
-    memset(&gm, 0, sizeof(gm));
-    memset(&mat, 0, sizeof(mat));
-    mat.eM11.value = 1;
-    mat.eM22.value = 1;
-    if (GetGlyphOutline(dc, GGO_METRICS, text[i], &gm, 0, NULL, &mat) != GDI_ERROR) {
-      printf("%02X: black (%d, %d) origin (%d, %d) cell(%d, %d)\n",
-            text[i], gm.gmBlackBoxX, gm.gmBlackBoxY, gm.gmptGlyphOrigin.x, 
-            gm.gmptGlyphOrigin.y, gm.gmCellIncX, gm.gmCellIncY);
-      printf("  : mat [ %-8f  %-8f ]\n", fixed(mat.eM11), fixed(mat.eM12));
-      printf("        [ %-8f  %-8f ]\n", fixed(mat.eM21), fixed(mat.eM22));
-    }
-    else {
-      printf("Could not get metrics for '\\x%02X'\n", text[i]);
-    }
-    if (GetCharABCWidths(dc, text[i], text[i], &first)) {
-      printf("%02X: %d %d %d\n", text[i], first.abcA, first.abcB, first.abcC);
-    }
-  }
-#endif
 
   SelectObject(dc, oldFont);
   ReleaseDC(NULL, dc);