From c91b4593dd998912046dedc7a5eaa733c7a21c7b Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Thu, 10 Sep 2015 15:04:43 -0400
Subject: [PATCH] slight change to msg/obj box text y-position to keep hanging
 letters like "g" from overlapping the xlet

---
 pd/nw/pdgui.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 4ce6b2e5a..7b6207c9b 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -1280,7 +1280,7 @@ function gui_fontsize_to_pd_fontsize(fontsize) {
 function gobj_font_y_kludge(fontsize) {
     switch (fontsize) {
         case 8: return -0.5;
-        case 10: return -1;
+        case 10: return -2;
         case 12: return -1;
         case 16: return -1.5;
         case 24: return -3;
@@ -1298,7 +1298,7 @@ function gui_text_new(canvasname, myname, type, isselected, left_margin, font_he
         // Turns out we can't do 'hanging' baseline
         // because it's borked when scaled. Bummer...
         // 'dominant-baseline': 'hanging',
-        'shape-rendering': 'optimizeSpeed',
+        'shape-rendering': 'crispEdges',
         'font-size': pd_fontsize_to_gui_fontsize(font) + 'px',
         'font-weight': 'normal',
         id: myname + 'text'
-- 
GitLab