From 2437d8fca72e6da68e08e855034178dcad4c1102 Mon Sep 17 00:00:00 2001 From: Hans Breuer Date: Fri, 21 Sep 2001 19:51:32 +0000 Subject: updated externals 2001-09-21 Hans Breuer * pango/pango.def : updated externals * pango/makefile.msc : build ft2 backend too. * pango/pangowin32-fontmap.c - Convert PangoWin32FamilyEntry into PangoWin32Family deriving from PangoFontFamily. - Convert PangoWin32FontEntry into PangoWin32Face deriving from PangoFontFace. - Change the list_families() method of the PangoWin32FontMap to list PangoFontFamily * rather than names. * pango/pangowin32.c : reflect PangoFontDescription api change * pango/pangowin32.h : don't include pango.h but only the required headers * modules/basic/basic-win32.c : #include "pango-engine.h" * pango/testfonts.c : reflect recent pango api changes --- pango/pangowin32-private.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'pango/pangowin32-private.h') diff --git a/pango/pangowin32-private.h b/pango/pangowin32-private.h index 2970fb49..8e3500f2 100644 --- a/pango/pangowin32-private.h +++ b/pango/pangowin32-private.h @@ -50,7 +50,7 @@ #endif typedef struct _PangoWin32Font PangoWin32Font; -typedef struct _PangoWin32FontEntry PangoWin32FontEntry; +typedef struct _PangoWin32Face PangoWin32Face; typedef struct _PangoWin32GlyphInfo PangoWin32GlyphInfo; struct _PangoWin32Font @@ -68,7 +68,7 @@ struct _PangoWin32Font gint tm_descent; gint tm_overhang; - PangoWin32FontEntry *entry; + PangoWin32Face *entry; /* If TRUE, font is in cache of recently unused fonts and not otherwise * in use. @@ -77,12 +77,16 @@ struct _PangoWin32Font GHashTable *glyph_info; }; -struct _PangoWin32FontEntry +struct _PangoWin32Face { + PangoFontFace parent_instance; + LOGFONT logfont; - PangoFontDescription description; + PangoFontDescription *description; PangoCoverage *coverage; + char *face_name; + gpointer unicode_table; GSList *cached_fonts; @@ -103,10 +107,10 @@ void pango_win32_make_matching_logfont (PangoFontMap *fontmap, const LOGFONT *lfp, int size, LOGFONT *out); -PangoCoverage * pango_win32_font_entry_get_coverage (PangoWin32FontEntry *entry); -void pango_win32_font_entry_set_coverage (PangoWin32FontEntry *entry, +PangoCoverage * pango_win32_font_entry_get_coverage (PangoWin32Face *face); +void pango_win32_font_entry_set_coverage (PangoWin32Face *face, PangoCoverage *coverage); -void pango_win32_font_entry_remove (PangoWin32FontEntry *entry, +void pango_win32_font_entry_remove (PangoWin32Face *face, PangoFont *font); void pango_win32_fontmap_cache_add (PangoFontMap *fontmap, -- cgit v1.2.1