diff options
author | Tor Lillqvist <tml@iki.fi> | 2002-10-21 23:48:24 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2002-10-21 23:48:24 +0000 |
commit | efe38161780103a7f01e1f241eca4d02e2039326 (patch) | |
tree | 07f9cd08c2af02229fe0cfb32dfee53189f4b889 /pango/pangowin32-private.h | |
parent | f1da959cfb199c97e45b2bde9a093205e2405247 (diff) | |
download | pango-efe38161780103a7f01e1f241eca4d02e2039326.tar.gz |
Add --with-usp10 flag to indicate where to find the usp10.h header, for
2002-10-22 Tor Lillqvist <tml@iki.fi>
* configure.in: Add --with-usp10 flag to indicate where to find
the usp10.h header, for using Uniscribe on Win32. Set USP10_H
autoconf variable, HAVE_USP10_H config.h macro and HAVE_USP10_H
automake conditional.
* acconfig.h: Add HAVE_USP10_H.
* pango/pangowin32-private.h (PANGO_WIN32_DEBUGGING): Change
semantics of this flag. If defined, also need to set env var
PANGO_WIN32_DEBUG to get the copious debugging output.
Change PING() macro accordingly. Add variable pango_win32_debug.
* pango/pangowin32.c (pango_win32_get_dc): New function. Code
factored out from pango_win32_font_class_init() and
pango_win32_font_map_class_init().
(pango_win32_get_debug_flag): New function.
(pango_win32_render): Handle y offsets, too. Potentially need to
call ExtTextOutW several times, one for each run of sequential
glyphs with the same y offset.
* pango/pangowin32.h: Declare above new functions, in the part
only for shaper engine use.
* pango/pangowin32.def: Export above new functions.
* pango/pangowin32-fontmap.c (pango_win32_font_map_class_init):
Call pango_win32_get_dc() as mentioned above.
* modules/basic/Makefile.am: If HAVE_USP10_H, let basic-win32.lo
depend on usp10.h.
* modules/basic/basic-win32.c: If HAVE_USP10_H, and the Uniscribe
DLL usp10.dll is present, use Uniscribe.
(uniscribe_shape, itemize_shape_and_place,
set_up_pango_log_clusters, convert_log_clusters_to_byte_offsets,
make_langid, init_uniscribe): New functions.
(dump_glyphs_and_log_clusters, lang_name, charset_name): Debugging
functions.
Diffstat (limited to 'pango/pangowin32-private.h')
-rw-r--r-- | pango/pangowin32-private.h | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/pango/pangowin32-private.h b/pango/pangowin32-private.h index dc1f5faa..b1014214 100644 --- a/pango/pangowin32-private.h +++ b/pango/pangowin32-private.h @@ -24,20 +24,27 @@ #ifndef __PANGOWIN32_PRIVATE_H__ #define __PANGOWIN32_PRIVATE_H__ -/* Define if you want copious debugging output. */ -/* #define PANGO_WIN32_DEBUGGING 1 */ +/* Define if you want the possibility to get copious debugging output. + * (You still need to set the PANGO_WIN32_DEBUG environment variable + * to get it.) + */ +#define PANGO_WIN32_DEBUGGING 1 #ifdef PANGO_WIN32_DEBUGGING #ifdef __GNUC__ #define PING(printlist) \ -(printf ("%s:%d ", __PRETTY_FUNCTION__, __LINE__), \ - printf printlist, \ - printf ("\n")) +(pango_win32_debug ? \ + (printf ("%s:%d ", __PRETTY_FUNCTION__, __LINE__), \ + printf printlist, \ + printf ("\n")) : \ + 0) #else #define PING(printlist) \ -(printf ("%s:%d ", __FILE__, __LINE__), \ - printf printlist, \ - printf ("\n")) +(pango_win32_debug ? \ + (printf ("%s:%d ", __FILE__, __LINE__), \ + printf printlist, \ + printf ("\n")) : \ + 0) #endif #else /* !PANGO_WIN32_DEBUGGING */ #define PING(printlist) @@ -72,9 +79,9 @@ struct _PangoWin32Font /* Written by pango_win32_get_hfont: */ HFONT hfont; - gint tm_ascent; - gint tm_descent; - gint tm_overhang; + gint tm_ascent; + gint tm_descent; + gint tm_overhang; PangoWin32Face *win32face; @@ -198,5 +205,6 @@ gboolean pango_win32_get_name_record (HDC hdc, extern HDC pango_win32_hdc; extern OSVERSIONINFO pango_win32_os_version_info; +extern gboolean pango_win32_debug; #endif /* __PANGOWIN32_PRIVATE_H__ */ |