[lasem] mathml_view: explicitely set weight for show_operator.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] mathml_view: explicitely set weight for show_operator.
- Date: Sat, 10 Dec 2011 13:28:38 +0000 (UTC)
commit a01be76eda94b7def3d71aaf3f845ec7226abeec
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Sat Dec 10 14:25:50 2011 +0100
mathml_view: explicitely set weight for show_operator.
Fix https://bugzilla.gnome.org/show_bug.cgi?id=665845
src/lsmmathmlview.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/lsmmathmlview.c b/src/lsmmathmlview.c
index 14730ff..144930e 100644
--- a/src/lsmmathmlview.c
+++ b/src/lsmmathmlview.c
@@ -176,6 +176,7 @@ lsm_mathml_view_measure_axis_offset (LsmMathmlView *view,
pango_font_description_set_family (font_description, LSM_MATHML_FONT_SERIF);
pango_font_description_set_size (font_description, math_size * PANGO_SCALE);
pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL);
+ pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL);
pango_layout_set_text (pango_layout, "\xe2\x88\x92", -1);
pango_layout_set_font_description (pango_layout, font_description);
pango_layout_get_extents (pango_layout, &ink_rect, NULL);
@@ -303,6 +304,7 @@ lsm_mathml_view_update_layout_for_operator (LsmMathmlView *view,
pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL);
pango_font_description_set_size (font_description,
style->math_size * PANGO_SCALE * (large ? LSM_MATHML_LARGE_OP_SCALE : 1.0));
+ pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL);
pango_layout_set_text (pango_layout, text, -1);
pango_layout_set_font_description (pango_layout, font_description);
pango_layout_get_extents (pango_layout, ink_rect, rect);
@@ -383,6 +385,7 @@ lsm_mathml_view_measure_operator (LsmMathmlView *view,
font_name = lsm_mathml_font_names [glyph->sized_glyphs[i].font];
pango_font_description_set_family (font_description, font_name);
pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL);
+ pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL);
pango_layout_set_text (pango_layout, glyph->sized_glyphs[i].utf8, -1);
pango_layout_set_font_description (pango_layout, font_description);
pango_layout_get_extents (pango_layout, &ink_rect, NULL);
@@ -510,6 +513,7 @@ lsm_mathml_view_show_operator (LsmMathmlView *view,
font_name = lsm_mathml_font_names [glyph->sized_glyphs[i].font];
pango_font_description_set_family (font_description, font_name);
pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL);
+ pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL);
pango_layout_set_text (pango_layout, glyph->sized_glyphs[i].utf8, -1);
pango_layout_set_font_description (pango_layout, font_description);
pango_layout_get_extents (pango_layout, &ink_rect, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]