summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--ChangeLog.pre-1-107
-rw-r--r--ChangeLog.pre-1-67
-rw-r--r--ChangeLog.pre-1-87
-rw-r--r--pango/pangofc-font.c3
5 files changed, 30 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a578663..cc2d7991 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Sep 20 12:17:37 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pangofc-font.c (get_face_metrics):
+ Don't use face->ascender/descender for non-scalable fonts,
+ since they aren't set. (#Enrico Scholz,
+ https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=129246)
+
2004-09-18 Tor Lillqvist <tml@iki.fi>
* pango/pango.def: Add pango_context_set_matrix. (#152883, Ivan
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index 8a578663..cc2d7991 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,10 @@
+Mon Sep 20 12:17:37 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pangofc-font.c (get_face_metrics):
+ Don't use face->ascender/descender for non-scalable fonts,
+ since they aren't set. (#Enrico Scholz,
+ https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=129246)
+
2004-09-18 Tor Lillqvist <tml@iki.fi>
* pango/pango.def: Add pango_context_set_matrix. (#152883, Ivan
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index 8a578663..cc2d7991 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,10 @@
+Mon Sep 20 12:17:37 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pangofc-font.c (get_face_metrics):
+ Don't use face->ascender/descender for non-scalable fonts,
+ since they aren't set. (#Enrico Scholz,
+ https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=129246)
+
2004-09-18 Tor Lillqvist <tml@iki.fi>
* pango/pango.def: Add pango_context_set_matrix. (#152883, Ivan
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index 8a578663..cc2d7991 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,10 @@
+Mon Sep 20 12:17:37 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/pangofc-font.c (get_face_metrics):
+ Don't use face->ascender/descender for non-scalable fonts,
+ since they aren't set. (#Enrico Scholz,
+ https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=129246)
+
2004-09-18 Tor Lillqvist <tml@iki.fi>
* pango/pango.def: Add pango_context_set_matrix. (#152883, Ivan
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index 31851369..a26d2da2 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -308,7 +308,8 @@ get_face_metrics (PangoFcFont *fcfont,
FT_Vector_Transform (&vector, &ft_matrix);
metrics->ascent = PANGO_UNITS_26_6 (vector.y);
}
- else if (fcfont->is_hinted)
+ else if (fcfont->is_hinted ||
+ (face->face_flags & FT_FACE_FLAG_SCALABLE) == 0)
{
metrics->descent = - PANGO_UNITS_26_6 (face->size->metrics.descender);
metrics->ascent = PANGO_UNITS_26_6 (face->size->metrics.ascender);