font alignment in LAF
-
hey everyone - I'm using a button in LAF - with the font size I want to use "centred" aligned text makes it look a little off centre (a touch too high) - is there a way to shift that text down a little bit (like a pixel or two)
Thanks!
-
@majetone Nudge the y value
-
@d-healey perfect Dave! Thanks! Of course!
-
@majetone you can replace the + - "offsethere" with your value
var a = [obj.area[0], obj.area[1], obj.area[2], obj.area[3]]; g.drawAlignedText(obj.text, [a[0], a[1] + offsethere , a[2], a[3]], "centred"); //x y width height