summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap-private.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-08-27 20:39:14 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-08-27 20:39:14 -0400
commit94b7c4ae13e3b71ffc283db1989389f22bd66446 (patch)
tree43ccbd82c43dd2537cd927d9b154ddceb053c6e1 /pango/pangofc-fontmap-private.h
parenta3517dcc6de9bae1193075b7112aa7db97b39dcc (diff)
downloadpango-94b7c4ae13e3b71ffc283db1989389f22bd66446.tar.gz
fc: Avoid extra copies of family names
When we create a PangoFcFont from an FcPattern, we know that the pattern will live as long as the font and the font description we create at the same time. So there is no need to copy the strings we get out of the pattern.
Diffstat (limited to 'pango/pangofc-fontmap-private.h')
-rw-r--r--pango/pangofc-fontmap-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pangofc-fontmap-private.h b/pango/pangofc-fontmap-private.h
index 68daea6c..42fa7e3d 100644
--- a/pango/pangofc-fontmap-private.h
+++ b/pango/pangofc-fontmap-private.h
@@ -191,6 +191,9 @@ struct _PangoFcFontMapClass
void (*_pango_reserved4) (void);
};
+PangoFontDescription *font_description_from_pattern (FcPattern *pattern,
+ gboolean include_size,
+ gboolean shallow);
G_END_DECLS