Jump to content

Leadwerks tutorial - Font studio


AggrorJorn
 Share

Recommended Posts

By default framework uses the command SetStats with a parameter of 1 (show fps). If you use setfont before the main loop then every text is going to have that font.

Haven't tested this but it might work:

 

main loop

fw:Update()
fw:Render()

SetBlend(1)

RemoveFont(myfont)
SetStats(1)
SetFont(myfont)
Drawtext ('lalalala')

SetBlend(1)

 

Althought this looks not all that good since you call setstats every single loop. I don't think it will impact performance but it can bother you with it presence in the main loop.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...