[gnome-text-editor] sourceview: fix 1.5x scaling of line-height



commit cbe1e9a2aef301b614f6b4a0f1413f05668ef499
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 18 13:35:58 2021 -0700

    sourceview: fix 1.5x scaling of line-height
    
    Fixes #190
    
    This fixes #190 without having to wait for anything in GTK (whether or not
    150% is valid based on the CSS spec is hard to interprit).

 src/editor-source-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/editor-source-view.c b/src/editor-source-view.c
index 5a353ef..028a949 100644
--- a/src/editor-source-view.c
+++ b/src/editor-source-view.c
@@ -81,7 +81,7 @@ editor_source_view_update_css (EditorSourceView *self)
 
       font_css = _editor_font_description_to_css (font_desc);
       g_string_append (str, font_css);
-      g_string_append (str, "\nline-height:150%;\n");
+      g_string_append (str, "\nline-height:1.5;\n");
     }
   g_string_append (str, "}\n");
 


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