diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 435724e074aa2326dfc5c61fab8bb80bcfe40f16..a05f8bd5104aba9179035d8f7edd54d7f8de5aea 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -2240,12 +2240,12 @@ function gui_drawnumber_vis(cid, parent_tag, tag, x, y, scale_x, scale_y,
             // the x attribute, see comment in gui_text_new
             transform: 'scale(' + scale_x + ',' + scale_y + ') ' +
                        'translate(' + x + ')',
-            y: y,
+            y: y + fontsize,
             // Turns out we can't do 'hanging' baseline because it's borked
             // when scaled. Bummer...
             // 'dominant-baseline': 'hanging',
             'shape-rendering': 'optimizeSpeed',
-            'font-size': font + 'px',
+            'font-size': fontsize + 'px',
             fill: fontcolor,
             visibility: visibility === 1 ? 'normal' : 'hidden',
             id: tag