Commit a6cfec4d authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix bug setting font for drawnumber/symbol

use correct y-offset for font positioning
parent b16eecc0
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment