summaryrefslogtreecommitdiff
path: root/pango/pango-font.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-04-13 16:21:00 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-04-13 16:21:00 +0000
commit6f2bd3ee69d5a79e5d7806ad91782c0743aa328c (patch)
tree3b95990d80b7ec9b50ee9da8c7cb2e0a63d3c768 /pango/pango-font.h
parentd3f7910e7e8e789e11438e55a09cd11a562cfd48 (diff)
downloadpango-6f2bd3ee69d5a79e5d7806ad91782c0743aa328c.tar.gz
Add macros for CSS font scale factors
2001-04-13 Havoc Pennington <hp@redhat.com> * pango/pango-font.h: Add macros for CSS font scale factors
Diffstat (limited to 'pango/pango-font.h')
-rw-r--r--pango/pango-font.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h
index d0619f24..0354d2be 100644
--- a/pango/pango-font.h
+++ b/pango/pango-font.h
@@ -74,6 +74,16 @@ typedef enum {
PANGO_STRETCH_ULTRA_EXPANDED
} PangoStretch;
+
+/* CSS scale factors (1.2 factor between each size) */
+#define PANGO_SCALE_XX_SMALL ((double)0.5787037037037)
+#define PANGO_SCALE_X_SMALL ((double)0.6444444444444)
+#define PANGO_SCALE_SMALL ((double)0.8333333333333)
+#define PANGO_SCALE_MEDIUM ((double)1.0)
+#define PANGO_SCALE_LARGE ((double)1.2)
+#define PANGO_SCALE_X_LARGE ((double)1.4399999999999)
+#define PANGO_SCALE_XX_LARGE ((double)1.728)
+
struct _PangoFontDescription
{
char *family_name;