summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog4
-rw-r--r--ChangeLog.pre-1-04
-rw-r--r--ChangeLog.pre-1-104
-rw-r--r--ChangeLog.pre-1-24
-rw-r--r--ChangeLog.pre-1-44
-rw-r--r--ChangeLog.pre-1-64
-rw-r--r--ChangeLog.pre-1-84
-rw-r--r--pango/pango-font.h10
8 files changed, 38 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e642409c..dc4af043 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-13 Havoc Pennington <hp@redhat.com>
+
+ * pango/pango-font.h: Add macros for CSS font scale factors
+
2001-04-13 James Henstridge <james@daa.com.au>
* configure.in: AC_INIT should be the first statement in the file.
diff --git a/ChangeLog.pre-1-0 b/ChangeLog.pre-1-0
index e642409c..dc4af043 100644
--- a/ChangeLog.pre-1-0
+++ b/ChangeLog.pre-1-0
@@ -1,3 +1,7 @@
+2001-04-13 Havoc Pennington <hp@redhat.com>
+
+ * pango/pango-font.h: Add macros for CSS font scale factors
+
2001-04-13 James Henstridge <james@daa.com.au>
* configure.in: AC_INIT should be the first statement in the file.
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index e642409c..dc4af043 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,7 @@
+2001-04-13 Havoc Pennington <hp@redhat.com>
+
+ * pango/pango-font.h: Add macros for CSS font scale factors
+
2001-04-13 James Henstridge <james@daa.com.au>
* configure.in: AC_INIT should be the first statement in the file.
diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2
index e642409c..dc4af043 100644
--- a/ChangeLog.pre-1-2
+++ b/ChangeLog.pre-1-2
@@ -1,3 +1,7 @@
+2001-04-13 Havoc Pennington <hp@redhat.com>
+
+ * pango/pango-font.h: Add macros for CSS font scale factors
+
2001-04-13 James Henstridge <james@daa.com.au>
* configure.in: AC_INIT should be the first statement in the file.
diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4
index e642409c..dc4af043 100644
--- a/ChangeLog.pre-1-4
+++ b/ChangeLog.pre-1-4
@@ -1,3 +1,7 @@
+2001-04-13 Havoc Pennington <hp@redhat.com>
+
+ * pango/pango-font.h: Add macros for CSS font scale factors
+
2001-04-13 James Henstridge <james@daa.com.au>
* configure.in: AC_INIT should be the first statement in the file.
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index e642409c..dc4af043 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,7 @@
+2001-04-13 Havoc Pennington <hp@redhat.com>
+
+ * pango/pango-font.h: Add macros for CSS font scale factors
+
2001-04-13 James Henstridge <james@daa.com.au>
* configure.in: AC_INIT should be the first statement in the file.
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index e642409c..dc4af043 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,7 @@
+2001-04-13 Havoc Pennington <hp@redhat.com>
+
+ * pango/pango-font.h: Add macros for CSS font scale factors
+
2001-04-13 James Henstridge <james@daa.com.au>
* configure.in: AC_INIT should be the first statement in the file.
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;