fix get font size

pull/1727/head
Rarder44 2022-04-21 22:00:24 +02:00
parent b7b64c2cfe
commit a6991560c3
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ function infoColor(name) {
* @param l
*/
function rScroller(l) {
g.setFont("Vector", Math.round(g.getHeight()*l.fsz.slice(0, -1)/100));
var size=l.font.split(":")[1].slice(0,-1);
g.setFont("Vector", Math.round(g.getHeight()*size/100));
const w = g.stringWidth(l.label)+40,
y = l.y+l.h/2;
l.offset = l.offset%w;