summaryrefslogtreecommitdiff
path: root/pango/pango-font.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-02-29 00:51:29 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-02-29 00:51:29 +0000
commit6278d373c1a564ae4233a2e4b6d428a9f6202728 (patch)
tree831ea6ce3ce84ab59e040cc7d176067962b33d5d /pango/pango-font.h
parentabacca30f29df84d9818cd1395449eff0e4ee171 (diff)
downloadpango-6278d373c1a564ae4233a2e4b6d428a9f6202728.tar.gz
Add functions to convert font descriptions to and from human-readable
Mon Feb 28 19:46:35 2000 Owen Taylor <otaylor@redhat.com> * libpango/fonts.c libpango/pango-fonts.h: Add functions to convert font descriptions to and from human-readable strings. * examples/viewer.c: Use functions from libpango instead of rolling our own font-description conversion functions.
Diffstat (limited to 'pango/pango-font.h')
-rw-r--r--pango/pango-font.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h
index d6d67d0e..bae83660 100644
--- a/pango/pango-font.h
+++ b/pango/pango-font.h
@@ -74,12 +74,16 @@ struct _PangoFontDescription
int size;
};
-PangoFontDescription *pango_font_description_copy (const PangoFontDescription *desc);
-gboolean pango_font_description_compare (const PangoFontDescription *desc1,
- const PangoFontDescription *desc2);
-void pango_font_description_free (PangoFontDescription *desc);
-void pango_font_descriptions_free (PangoFontDescription **descs,
- int n_descs);
+PangoFontDescription *pango_font_description_copy (const PangoFontDescription *desc);
+gboolean pango_font_description_compare (const PangoFontDescription *desc1,
+ const PangoFontDescription *desc2);
+void pango_font_description_free (PangoFontDescription *desc);
+void pango_font_descriptions_free (PangoFontDescription **descs,
+ int n_descs);
+
+PangoFontDescription *pango_font_description_from_string (const char *str);
+char * pango_font_description_to_string (const PangoFontDescription *desc);
+
/* Logical fonts
*/