summaryrefslogtreecommitdiff
path: root/pango/pangowin32.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-11-11 15:32:57 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-11-11 15:32:57 +0000
commit9b6b1cc06cd9fdb18be644248577eae22ef6ee5f (patch)
tree0b1f32ca805f005c336c910226f79dfef7115133 /pango/pangowin32.c
parent3d3be7b21de8ba776faffc560cab565a0d7d5022 (diff)
downloadpango-9b6b1cc06cd9fdb18be644248577eae22ef6ee5f.tar.gz
Add code to call SetTextAlign, but commented out.
2000-11-11 Tor Lillqvist <tml@iki.fi> * pango/pangowin32.c (pango_win32_render): Add code to call SetTextAlign, but commented out. * pango/makefile.mingw.in (PANGO_OBJS): Add new objects. * pango/pango.def: Add new functions.
Diffstat (limited to 'pango/pangowin32.c')
-rw-r--r--pango/pangowin32.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c
index 985cd0f9..c1ae86bf 100644
--- a/pango/pangowin32.c
+++ b/pango/pangowin32.c
@@ -316,6 +316,7 @@ pango_win32_render (HDC hdc,
HFONT old_hfont = NULL;
HFONT orig_hfont = NULL;
HFONT hfont;
+ UINT orig_align = -1;
int i;
int x_off = 0;
@@ -344,7 +345,11 @@ pango_win32_render (HDC hdc,
SelectObject (hdc, hfont);
old_hfont = hfont;
}
-
+#if 0
+ if (orig_align == (UINT) -1)
+ orig_align =
+ SetTextAlign (hdc, TA_LEFT|TA_BOTTOM|TA_NOUPDATECP);
+#endif
TextOutW (hdc,
x + (x_off + glyphs->glyphs[i].geometry.x_offset) / PANGO_SCALE,
y + glyphs->glyphs[i].geometry.y_offset / PANGO_SCALE,
@@ -356,6 +361,10 @@ pango_win32_render (HDC hdc,
}
if (orig_hfont != NULL)
SelectObject (hdc, orig_hfont);
+#if 0
+ if (orig_align != (UINT) -1)
+ SetTextAlign (hdc, orig_align);
+#endif
}
/* This table classifies Unicode characters according to the Microsoft
@@ -364,7 +373,7 @@ pango_win32_render (HDC hdc,
* but not quite, the same as the official Unicode block table in
* Blocks.txt from ftp.unicode.org. The bit number field is the bitfield
* number as in the FONTSIGNATURE struct's fsUsb field.
- * There are some grave bugs in the table in the books. For instance
+ * There are some grave bugs in the table in the book. For instance
* it claims there are Hangul at U+3400..U+4DFF while this range in
* fact contains CJK Unified Ideographs Extension A. Also, the whole
* block of Hangul Syllables U+AC00..U+D7A3 is missing from the book.