summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-09-20 17:01:53 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-09-20 17:01:53 +0000
commit1ef52b779f5c4ceeaebfaa5568ff7eea80969427 (patch)
tree47dab0263cd805272a1c2de7be4397e53540ee0b
parentcfb9000beb0e2004fa4b2e8ebdf367d89d89d64a (diff)
downloadpango-1ef52b779f5c4ceeaebfaa5568ff7eea80969427.tar.gz
Don't use face->ascender/descender for non-scalable fonts, since they
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)
-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);