diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-12-03 18:43:15 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-12-03 18:51:19 +0800 |
commit | 66e2ea5f428893e102fe2cbaa45de0852118f5e2 (patch) | |
tree | f2df2553972b6052d39d3421135e1581e9a90553 /pango/pangowin32.h | |
parent | 26f07a575b5046abaa2cdbfa92b7716edfb00d5b (diff) | |
download | pango-66e2ea5f428893e102fe2cbaa45de0852118f5e2.tar.gz |
PangoWin32: Make PangoWin32Font type checks public
This can be useful so that we can check against which backend is being
used on Windows, as it can be either Win32 or FontConfig/FreeType.
Also rename cases of PANGO_WIN32_IS_FONT to PANGO_IS_WIN32_FONT, to fit
what is more commonly used--as PANGO_WIN32_IS_FONT was private, we can
get away with that without breaking ABI/API.
Diffstat (limited to 'pango/pangowin32.h')
-rw-r--r-- | pango/pangowin32.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pango/pangowin32.h b/pango/pangowin32.h index 5a773811..fe68cc31 100644 --- a/pango/pangowin32.h +++ b/pango/pangowin32.h @@ -40,6 +40,10 @@ G_BEGIN_DECLS #include <windows.h> #undef STRICT +#define PANGO_TYPE_WIN32_FONT (pango_win32_font_get_type ()) +#define PANGO_WIN32_FONT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), PANGO_TYPE_WIN32_FONT, PangoWin32Font)) +#define PANGO_IS_WIN32_FONT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANGO_TYPE_WIN32_FONT)) + /** * PANGO_RENDER_TYPE_WIN32: * @@ -146,6 +150,9 @@ PangoFontDescription *pango_win32_font_description_from_logfont (const LOGFONTA PANGO_AVAILABLE_IN_1_16 PangoFontDescription *pango_win32_font_description_from_logfontw (const LOGFONTW *lfp); +PANGO_AVAILABLE_IN_1_48 +GType pango_win32_font_get_type (void) G_GNUC_CONST; + G_END_DECLS #endif /* __PANGOWIN32_H__ */ |