diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-11-19 21:09:07 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-11-19 21:09:07 +0000 |
commit | 4cd0ea80ed9b8d768eb4e736403ae195f18eaccd (patch) | |
tree | 282d90f7d521354b3dce213695a802d9a87aa0da /pango/pangoft2-private.h | |
parent | ad9f543f410a0e7bbdbadafa42c75bc04ff2be58 (diff) | |
download | pango-4cd0ea80ed9b8d768eb4e736403ae195f18eaccd.tar.gz |
New file.
2000-11-19 Tor Lillqvist <tml@iki.fi>
* README.win32: New file.
* pango/fonts.c (pango_font_description_to_filename): New
function. As pango_font_description_to_string, but with result
that is better suitable as a filename: No spaces or other strange
characters, all in lowercase.
(pango_font_describe): Implement this function, call the
corresponding method.
* pango/pango-font.h: Declare pango_font_description_to_filename.
* pango/pangowin32.c (pango_win32_font_describe)
* pango/pangoft2.c (pango_ft2_font_describe): Implement these.
* pango/pangoft2-fontmap.c (pango_ft2_font_entry_get_coverage)
* pango/pangowin32-fontmap.c (pango_win32_font_entry_get_coverage):
Implement file-based persistent caching of coverages.
* pango/pangoft2-private.h (struct _PangoFT2FontEntry)
* pango/pangowin32-private.h (struct _PangoWin32FontEntry): Move
struct definition here from the -fontmap files.
* pango/pango.def: Updates.
Diffstat (limited to 'pango/pangoft2-private.h')
-rw-r--r-- | pango/pangoft2-private.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/pango/pangoft2-private.h b/pango/pangoft2-private.h index 19c0cf66..54008904 100644 --- a/pango/pangoft2-private.h +++ b/pango/pangoft2-private.h @@ -27,17 +27,19 @@ #include "pangoft2.h" /* Debugging... */ -#define DEBUGGING 0 +#define DEBUGGING 1 #if defined(DEBUGGING) && DEBUGGING #ifdef __GNUC__ #define PING(printlist) \ (g_print ("%s:%d ", __PRETTY_FUNCTION__, __LINE__), \ - g_print printlist) + g_print printlist, \ + g_print ("\n")) #else #define PING(printlist) \ (g_print ("%s:%d ", __FILE__, __LINE__), \ - g_print printlist) + g_print printlist, \ + g_print ("\n")) #endif #else /* !DEBUGGING */ #define PING(printlist) @@ -85,7 +87,18 @@ struct _PangoFT2Font */ gboolean in_cache; - PangoFT2FontEntry *entry; /* Used to remove cached fonts */ + PangoFT2FontEntry *entry; +}; + +struct _PangoFT2FontEntry +{ + FT_Open_Args **open_args; + FT_Long *face_indices; + int n_fonts; + PangoFontDescription description; + PangoCoverage *coverage; + + GSList *cached_fonts; }; PangoMap *pango_ft2_get_shaper_map (const char *lang); |