diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-12-23 14:30:45 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-12-23 17:04:28 -0500 |
commit | 16ba47a34005f390370f64a108c4b4acce8a9875 (patch) | |
tree | 7b3a4c066a0a242634252969da3fc71ac4389601 /pango/pango-font.h | |
parent | 53da3a0a7859ce9bc9e3589d298e6a8169276a95 (diff) | |
download | pango-16ba47a34005f390370f64a108c4b4acce8a9875.tar.gz |
Add api to get language coverage for faceswip/matthiasc/face-lang
This is needed to make filtering in the font
chooser performant.
Diffstat (limited to 'pango/pango-font.h')
-rw-r--r-- | pango/pango-font.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h index 4af31a95..9a0b22a9 100644 --- a/pango/pango-font.h +++ b/pango/pango-font.h @@ -492,6 +492,11 @@ void pango_font_face_list_sizes (PangoFontFace *face, PANGO_AVAILABLE_IN_1_18 gboolean pango_font_face_is_synthesized (PangoFontFace *face) G_GNUC_PURE; +PANGO_AVAILABLE_IN_1_42 +void pango_font_face_get_languages (PangoFontFace *face, + PangoLanguage ***languages, + int *n_languages); + #ifdef PANGO_ENABLE_BACKEND #define PANGO_FONT_FACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FONT_FACE, PangoFontFaceClass)) @@ -525,10 +530,12 @@ struct _PangoFontFaceClass gboolean (*is_synthesized) (PangoFontFace *face); /*< private >*/ + void (*get_languages) (PangoFontFace *face, + PangoLanguage ***languages, + int *n_languages); /* Padding for future expansion */ void (*_pango_reserved3) (void); - void (*_pango_reserved4) (void); }; #endif /* PANGO_ENABLE_BACKEND */ |