diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-12-30 12:26:06 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-01-28 09:03:03 -0500 |
commit | 41d718553a1358661e58ca7915b59f958e780600 (patch) | |
tree | e34ff101c64fc93aa789e0e2f573fcdc7c10a867 /pango/pango-font.h | |
parent | 0c5b714c17ef5efa6d8e19592cb30f0b9a608402 (diff) | |
download | pango-41d718553a1358661e58ca7915b59f958e780600.tar.gz |
Add some useful face api
Add pango_font_face_supports_language and pango_font_face_get_languages.
There is no particular reason to tie language information to fonts
instead of faces. This will be useful for the font chooser.
Update the fontconfig implementation for these changes.
Diffstat (limited to 'pango/pango-font.h')
-rw-r--r-- | pango/pango-font.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h index d54dd820..1ba02b06 100644 --- a/pango/pango-font.h +++ b/pango/pango-font.h @@ -534,6 +534,14 @@ gboolean pango_font_face_is_monospace (PangoFontFace *face); PANGO_AVAILABLE_IN_1_52 gboolean pango_font_face_is_variable (PangoFontFace *face); +PANGO_AVAILABLE_IN_1_52 +gboolean pango_font_face_supports_language (PangoFontFace *face, + PangoLanguage *language); + +PANGO_AVAILABLE_IN_1_52 +PangoLanguage ** pango_font_face_get_languages (PangoFontFace *face); + + /* * PangoFont |