[lasem] <mathml:math> Force script_min_size when setting default mathsize.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [lasem] <mathml:math> Force script_min_size when setting default mathsize.
- Date: Sun, 18 Oct 2009 20:21:57 +0000 (UTC)
commit c8b481159668d6c204fe39440ba3a6309c6ddc1a
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Fri Oct 16 19:31:00 2009 +0200
<mathml:math> Force script_min_size when setting default mathsize.
src/lsmmathmlstyle.c | 2 ++
src/lsmmathmlstyle.h | 15 ++++++++-------
2 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/lsmmathmlstyle.c b/src/lsmmathmlstyle.c
index 4901edf..f49715e 100644
--- a/src/lsmmathmlstyle.c
+++ b/src/lsmmathmlstyle.c
@@ -93,6 +93,8 @@ lsm_mathml_style_set_math_size_pt (LsmMathmlStyle *style, double math_size)
style->math_size_value = math_size;
style->math_size.value = math_size;
style->math_size.unit = LSM_MATHML_UNIT_PT;
+ style->script_min_size.value = math_size;
+ style->script_min_size.unit = LSM_MATHML_UNIT_PT;
}
void
diff --git a/src/lsmmathmlstyle.h b/src/lsmmathmlstyle.h
index ead019e..b39bf0a 100644
--- a/src/lsmmathmlstyle.h
+++ b/src/lsmmathmlstyle.h
@@ -71,14 +71,15 @@ struct _LsmMathmlStyle {
};
LsmMathmlStyle * lsm_mathml_style_new (void);
-void lsm_mathml_style_free (LsmMathmlStyle *style);
+void lsm_mathml_style_free (LsmMathmlStyle *style);
LsmMathmlStyle * lsm_mathml_style_duplicate (const LsmMathmlStyle *from);
-void lsm_mathml_style_change_script_level (LsmMathmlStyle *style, int increment);
-void lsm_mathml_style_set_math_size_pt (LsmMathmlStyle *style, double math_size);
-void lsm_mathml_style_set_math_family (LsmMathmlStyle *style, const char *math_family);
-void lsm_mathml_style_set_math_variant (LsmMathmlStyle *style, LsmMathmlVariant math_variant);
-void lsm_mathml_style_set_math_color (LsmMathmlStyle *style,
- double red, double green, double blue, double alpha);
+
+void lsm_mathml_style_change_script_level (LsmMathmlStyle *style, int increment);
+void lsm_mathml_style_set_math_size_pt (LsmMathmlStyle *style, double math_size);
+void lsm_mathml_style_set_math_family (LsmMathmlStyle *style, const char *math_family);
+void lsm_mathml_style_set_math_variant (LsmMathmlStyle *style, LsmMathmlVariant math_variant);
+void lsm_mathml_style_set_math_color (LsmMathmlStyle *style,
+ double red, double green, double blue, double alpha);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]