BlitzPlus Docs -> FontName
FontName$(font)
Parameters:
font - a valid font handleDescription:
Returns a string containing the name of the specified font.See also: RequestFont, LoadFont, SetFont, FreeFont, FontWidth, FontHeight, FontSize, FontStyle.
Example:
window=CreateWindow( "Window",0,0,640,480 ) canvas=CreateCanvas( 0,0,ClientWidth(window),ClientHeight(window),window ) font=RequestFont() If Not font RuntimeError "No font selected" SetBuffer CanvasBuffer(canvas) SetFont font name$=FontName$(font) size=FontSize(font) style=FontStyle(font) Text 0,0,"Font name: "+name Text 0,size+4,"Font size: "+size Text 0,(size+4)*2,"Font style: "+style FlipCanvas canvas While WaitEvent()<>$803 Wend End
Comments
| ||
| This command was introduced in V1.39. |
BlitzPlus Manual Forum
Blitz3D Equivalent Command




