diff options
author | Tor Lillqvist <tml@iki.fi> | 2002-09-24 20:51:44 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2002-09-24 20:51:44 +0000 |
commit | dcbf564cad728558921cbb80e4e2022471d5ae33 (patch) | |
tree | 5763ebc3ed6510e636583e786b6df8c39e1e944e /pango/pangowin32.h | |
parent | 65ece991798265a60e4b75cd23be8484560b6c0a (diff) | |
download | pango-dcbf564cad728558921cbb80e4e2022471d5ae33.tar.gz |
Merge from pango-1-0:
2002-09-24 Tor Lillqvist <tml@iki.fi>
* pango/pangowin32.c: Use PANGO_PIXELS macro throughout instead of
dividing by PANGO_SCALE.
(pango_win32_render): New try. This time handle both glyphs at
code point 0, specifically put there by PangoLayout to indicate
spacing (for tab handling), and actual invalid glyphs noticed by
the shaper. Invalid glyphs are indicated by the flag
PANGO_WIN32_UNKNOWN_FLAG. (Idea taken frompangoxft-font.c)
(pango_win32_get_unknown_glyph): Take also the char as parameter,
return the same char with the above flag ORed in.
(pango_win32_font_get_glyph_extents): If the glyph is flagged as
invalid, look for glyph 0 instead. Use g_win32_error_message() in
warning message instead of numeric error code.
* pango/pangowin32.h: Add the new parameter to the
pango_win32_get_unknown_glyph() declaration. Surround the API used
by shape engines with #ifdef PANGO_ENABLE_ENGINE.
* modules/basic/basic-win32.c: Change call accordingly.
Diffstat (limited to 'pango/pangowin32.h')
-rw-r--r-- | pango/pangowin32.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pango/pangowin32.h b/pango/pangowin32.h index 6c2f2651..49dcd08a 100644 --- a/pango/pangowin32.h +++ b/pango/pangowin32.h @@ -58,13 +58,17 @@ void pango_win32_render_layout (HDC hdc, int y); +#ifdef PANGO_ENABLE_ENGINE -/* API for rendering modules +/* For shape engines */ -PangoGlyph pango_win32_get_unknown_glyph (PangoFont *font); -gint pango_win32_font_get_glyph_index (PangoFont *font, - gunichar wc); +PangoGlyph pango_win32_get_unknown_glyph (PangoFont *font, + gunichar wc); +gint pango_win32_font_get_glyph_index(PangoFont *font, + gunichar wc); + +#endif /* API for libraries that want to use PangoWin32 mixed with classic * Win32 fonts. |