summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorten Welinder <terra@gnome.org>2003-11-18 14:01:47 +0000
committerMorten Welinder <mortenw@src.gnome.org>2003-11-18 14:01:47 +0000
commit0833fd45a0dcbe674adb096d975b35d4eb995b84 (patch)
tree74238ef5bec5fa1e0d4260f910dd3db51cdc7df8
parent1b17d626452d671b419db9e2beaef9dd13010555 (diff)
downloadpango-0833fd45a0dcbe674adb096d975b35d4eb995b84.tar.gz
Fix _SCALE semantics. Fixes bug 121543; patch from Owen.
2003-11-18 Morten Welinder <terra@gnome.org> * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix _SCALE semantics. Fixes bug 121543; patch from Owen.
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-1-105
-rw-r--r--ChangeLog.pre-1-45
-rw-r--r--ChangeLog.pre-1-65
-rw-r--r--ChangeLog.pre-1-85
-rw-r--r--pango/pango-attributes.c13
6 files changed, 34 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a73f1a1..f6f32009 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-18 Morten Welinder <terra@gnome.org>
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix
+ _SCALE semantics. Fixes bug 121543; patch from Owen.
+
2003-11-18 Sven Neumann <sven@gimp.org>
* pango/pangoft2-fontmap.c: removed the set_unicode_charmap() call.
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index 8a73f1a1..f6f32009 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,8 @@
+2003-11-18 Morten Welinder <terra@gnome.org>
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix
+ _SCALE semantics. Fixes bug 121543; patch from Owen.
+
2003-11-18 Sven Neumann <sven@gimp.org>
* pango/pangoft2-fontmap.c: removed the set_unicode_charmap() call.
diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4
index 8a73f1a1..f6f32009 100644
--- a/ChangeLog.pre-1-4
+++ b/ChangeLog.pre-1-4
@@ -1,3 +1,8 @@
+2003-11-18 Morten Welinder <terra@gnome.org>
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix
+ _SCALE semantics. Fixes bug 121543; patch from Owen.
+
2003-11-18 Sven Neumann <sven@gimp.org>
* pango/pangoft2-fontmap.c: removed the set_unicode_charmap() call.
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index 8a73f1a1..f6f32009 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,8 @@
+2003-11-18 Morten Welinder <terra@gnome.org>
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix
+ _SCALE semantics. Fixes bug 121543; patch from Owen.
+
2003-11-18 Sven Neumann <sven@gimp.org>
* pango/pangoft2-fontmap.c: removed the set_unicode_charmap() call.
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index 8a73f1a1..f6f32009 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,8 @@
+2003-11-18 Morten Welinder <terra@gnome.org>
+
+ * pango/pango-attributes.c (pango_attr_iterator_get_font): Fix
+ _SCALE semantics. Fixes bug 121543; patch from Owen.
+
2003-11-18 Sven Neumann <sven@gimp.org>
* pango/pangoft2-fontmap.c: removed the set_unicode_charmap() call.
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 275de0ac..85562f47 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1390,6 +1390,8 @@ pango_attr_iterator_get_font (PangoAttrIterator *iterator,
PangoFontMask mask = 0;
gboolean have_language = FALSE;
+ gdouble scale = 0;
+ gboolean have_scale = FALSE;
g_return_if_fail (iterator != NULL);
g_return_if_fail (desc != NULL);
@@ -1460,11 +1462,10 @@ pango_attr_iterator_get_font (PangoAttrIterator *iterator,
}
break;
case PANGO_ATTR_SCALE:
- if (!(mask & PANGO_FONT_MASK_SIZE))
+ if (!have_scale)
{
- mask |= PANGO_FONT_MASK_SIZE;
- pango_font_description_set_size (desc,
- ((PangoAttrFloat *)attr)->value * pango_font_description_get_size (desc));
+ have_scale = TRUE;
+ scale = ((PangoAttrFloat *)attr)->value;
}
break;
case PANGO_ATTR_LANGUAGE:
@@ -1500,6 +1501,10 @@ pango_attr_iterator_get_font (PangoAttrIterator *iterator,
}
}
}
+
+ if (have_scale)
+ pango_font_description_set_size (desc, scale * pango_font_description_get_size (desc));
+
}
/**