summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-12-08 03:28:29 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-12-08 03:28:29 +0000
commit9a7e5dd5e9a7f5f5397273082a7ca356699106d6 (patch)
tree01aecf826f06a307f29b6055c0e6cfce0281a096 /pango/pangofc-fontmap.h
parent329878c07db2f693ffc08a3afc55acb89a701098 (diff)
downloadpango-9a7e5dd5e9a7f5f5397273082a7ca356699106d6.tar.gz
Bug 563557 – set g_get_prgname() in fc pattern
2008-12-07 Behdad Esfahbod <behdad@gnome.org> Bug 563557 – set g_get_prgname() in fc pattern * docs/pango-sections.txt: * pango/pangofc-fontmap.c (pango_fc_make_pattern): * pango/pangofc-fontmap.h: Add PANGO_FC_PRGNAME which is the fontconfig element "pangoprgname". Populate it on all our fontconfig search patterns using g_get_prgname(). See bug for sample use. svn path=/trunk/; revision=2751
Diffstat (limited to 'pango/pangofc-fontmap.h')
-rw-r--r--pango/pangofc-fontmap.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/pango/pangofc-fontmap.h b/pango/pangofc-fontmap.h
index d50563ef..fe1e1b5b 100644
--- a/pango/pangofc-fontmap.h
+++ b/pango/pangofc-fontmap.h
@@ -183,6 +183,8 @@ PangoFontDescription *pango_fc_font_description_from_pattern (FcPattern *pattern
* than %PangoGravitySouth is desired.
*
* The property will have a #PangoGravity value as a string, like "east".
+ * This can be used to write fontconfig configuration rules to choose
+ * different fonts for horizontal and vertical writing directions.
*
* Since: 1.20
*/
@@ -196,11 +198,29 @@ PangoFontDescription *pango_fc_font_description_from_pattern (FcPattern *pattern
*
* The property will have an integer value equal to what
* pango_version() returns.
+ * This can be used to write fontconfig configuration rules that only affect
+ * certain pango versions (or only pango-using applications, or only
+ * non-pango-using applications).
*
* Since: 1.20
*/
#define PANGO_FC_VERSION "pangoversion"
+/**
+ * PANGO_FC_PRGNAME:
+ *
+ * String representing a fontconfig property name that Pango sets on any
+ * fontconfig pattern it passes to fontconfig.
+ *
+ * The property will have a string equal to what
+ * g_get_prgname() returns.
+ * This can be used to write fontconfig configuration rules that only affect
+ * certain applications.
+ *
+ * Since: 1.24
+ */
+#define PANGO_FC_PRGNAME "pangoprgname"
+
G_END_DECLS
#endif /* __PANGO_FC_FONT_MAP_H__ */