[evolution] Bug 773494 - Composer doesn't respect dpi settings



commit a5759a83d0ce2b98a819db85e2df4f6ecc4df8fd
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Oct 26 07:52:29 2016 +0200

    Bug 773494 - Composer doesn't respect dpi settings
    
    Normalize the font size when setting the "default-monospace-font-size" and
    "minimum-font-size" properties of WebKitSettings (as we do for
    EWebView).

 src/modules/webkit-editor/e-webkit-editor.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/modules/webkit-editor/e-webkit-editor.c b/src/modules/webkit-editor/e-webkit-editor.c
index ab82d4e..009eeba 100644
--- a/src/modules/webkit-editor/e-webkit-editor.c
+++ b/src/modules/webkit-editor/e-webkit-editor.c
@@ -1299,8 +1299,12 @@ webkit_editor_update_styles (EContentEditor *editor)
                pango_font_description_get_family (vw),
                "monospace-font-family",
                pango_font_description_get_family (ms),
-               "default-monospace-font-size", pango_font_description_get_size (ms) / PANGO_SCALE,
-               "minimum-font-size", pango_font_description_get_size (min_size) / PANGO_SCALE,
+               "default-monospace-font-size",
+               e_util_normalize_font_size (
+                       GTK_WIDGET (wk_editor), pango_font_description_get_size (ms) / PANGO_SCALE),
+               "minimum-font-size",
+               e_util_normalize_font_size (
+                       GTK_WIDGET (wk_editor), pango_font_description_get_size (min_size) / PANGO_SCALE),
                NULL);
 
        manager = webkit_web_view_get_user_content_manager (WEBKIT_WEB_VIEW (wk_editor));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]