Page 1 of 1

TextOut to have FontSize option

Posted: Wed Sep 21, 2022 4:04 pm
by Bugala
If I saw right, it seems there is no option to control the size of TextOut() command, unless separately using something like SetFont() command.

Hence it would be good to have an option on that Table part of "FontSize = 10", like there is now the "color=#RED" option.

Re: TextOut to have FontSize option

Posted: Sat Sep 24, 2022 11:33 pm
by airsoftsoftwair
Unlikely to come because that would mean reopening the font and this would affect many internal things like the font cache. You could use "ScaleX" and "ScaleY" instead.

Re: TextOut to have FontSize option

Posted: Sun Sep 25, 2022 12:43 am
by PEB
@Bugala

SetLayerStyle() also allows you to set/change the point size for #TEXTOUT layers.

Re: TextOut to have FontSize option

Posted: Mon Sep 26, 2022 9:22 am
by Bugala
@PEB, yes, SetLayerStyle is one way too, but it still requires you to do more than just TextOut.

@Airsoftsoftwair, missed those ScaleX and ScaleY, these might work out.