diff options
author | Tor Lillqvist <tml@novell.com> | 2005-09-14 04:05:51 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-09-14 04:05:51 +0000 |
commit | 76382d08e3a42c8dd425e308d73a6a4f0f49c9d9 (patch) | |
tree | 7f2a14733562614b2960aaca88ac9068b4733e13 /pango/pangowin32.c | |
parent | 74f0a825227c1fe752aa3bb0154f4837370c158f (diff) | |
download | pango-76382d08e3a42c8dd425e308d73a6a4f0f49c9d9.tar.gz |
Have a list of metrics by language instead of just one metrics.
2005-09-14 Tor Lillqvist <tml@novell.com>
* pango/pangocairo-win32font.c (struct _PangoCairoWin32Font): Have
a list of metrics by language instead of just one metrics.
(pango_cairo_win32_font_get_scaled_font): Use the name cwfont
instead of cffont.
(free_metrics_info, pango_cairo_win32_font_finalize): Free the
metrics by language list.
(create_metrics_for_context): New helper function. Approximate the
character and digit widths correctly. (#314114)
(pango_cairo_win32_font_get_metrics): Use the list of metrics by
language. Call create_metrics_for_context() to measure metrics.
(_pango_cairo_win32_font_new): Keep the PangoWin32Font objects in
the PangoWin32Face::cached_fonts, like the pangowin32 backend
does.
PangoWin32Face::cached_fonts isn't really a proper cache. It's a
list with unbound length, one PangoWin32Font per size. Once there
is cacheing in cairo this can be dropped presumably? What does the
pangofc backend do? There are too many levels of cacheing going
on: we have the stuff in pangowin32-fontcache.c (unused now with
cairo), the PangoWin32FontMap::freed_fonts cache, and the
PangoWin32::cached_fonts list.
* pango/pangowin32-fontmap.c (pango_win32_fontmap_cache_remove,
pango_win32_fontmap_cache_clear): Use GQueue API instead of
manipulating pointers manually.
* pango/pangowin32-private.h
* pango/pangowin32.c: Move PangoWin32MetricsInfo to the private
header file, as also pangocairo-win32font.c uses it.
Diffstat (limited to 'pango/pangowin32.c')
-rw-r--r-- | pango/pangowin32.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c index b7769650..bd1908a9 100644 --- a/pango/pangowin32.c +++ b/pango/pangowin32.c @@ -42,14 +42,6 @@ HDC pango_win32_hdc; OSVERSIONINFO pango_win32_os_version_info; gboolean pango_win32_debug = FALSE; -typedef struct _PangoWin32MetricsInfo PangoWin32MetricsInfo; - -struct _PangoWin32MetricsInfo -{ - const char *sample_str; - PangoFontMetrics *metrics; -}; - static void pango_win32_font_dispose (GObject *object); static void pango_win32_font_finalize (GObject *object); |