Commit ecbe132a authored by Matthias Clasen's avatar Matthias Clasen

fc: Add a getter for PangoFcFont::pattern

Properties are better with getters.
parent c36b573f
Pipeline #215468 passed with stages
in 54 seconds
......@@ -1015,6 +1015,7 @@ pango_fc_font_get_glyph
pango_fc_font_get_unknown_glyph
pango_fc_font_kern_glyphs
pango_fc_font_get_languages
pango_fc_font_get_pattern
<SUBSECTION Standard>
PANGO_FC_FONT
PANGO_IS_FC_FONT
......
......@@ -1067,3 +1067,19 @@ pango_fc_font_get_languages (PangoFcFont *font)
return languages;
}
/**
* pango_fc_font_get_pattern:
* @font: a #PangoFcFont
*
* Returns the FcPattern that @font is based on.
*
* Returns: the fontconfig pattern for this font
*
* Since: 1.48
*/
FcPattern *
pango_fc_font_get_pattern (PangoFcFont *font)
{
return font->font_pattern;
}
......@@ -98,6 +98,9 @@ PANGO_AVAILABLE_IN_1_48
PangoLanguage **
pango_fc_font_get_languages (PangoFcFont *font);
PANGO_AVAILABLE_IN_1_48
FcPattern *pango_fc_font_get_pattern (PangoFcFont *font);
PANGO_DEPRECATED_FOR(PANGO_GET_UNKNOWN_GLYPH)
PangoGlyph pango_fc_font_get_unknown_glyph (PangoFcFont *font,
gunichar wc);
......@@ -110,5 +113,6 @@ FT_Face pango_fc_font_lock_face (PangoFcFont *font);
PANGO_DEPRECATED_IN_1_44_FOR(pango_font_get_hb_font)
void pango_fc_font_unlock_face (PangoFcFont *font);
G_END_DECLS
#endif /* __PANGO_FC_FONT_H__ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment