Code: Select all
Fuente=FontRequest("Select one font")
SetFont(Fuente.name, Fuente.size) ;Here you get the name and size from the font.
SetFontColor(HexStr(Fuente.color)) ;I gives the font color.
;Here I try to get the anlialias, but the instruction GetAttribute needs a font number and with the FontRequest it is possible?
TextoAlias=GetAttribute(#FONT, Fuente, #ATTRFONTAA)
If TextoAlias=True
SetFontStyle(#ANTIALIAS)
SystemRequest("WARNING", "Font with antialias", "Ok", #REQICON_ERROR)
Else
SystemRequest("WARNING", "Font without antialias", "ok", #REQICON_ERROR)
EndIf
TextOut(#CENTER, #CENTER, "TEXT OF TEST")
EscapeQuit(False)
Repeat
WaitEvent
Forever
Thank you.