Files
RCBASIC4/doc/files/activefont.txt
2026-02-26 15:33:51 -06:00

16 lines
297 B
Plaintext

#title ActiveFont [RCBasic Doc]
#header Function ActiveFont()
Returns the current font that will be used with DrawText
#code
test_font = LoadFont("test_font.ttf", 12)
SetFont(test_font)
If ActiveFont() = test_font Then
Print "Test Font is active"
End If
#/code
#ref LoadFont SetFont DrawText