Reply To: How to use createDashedStroke

Home Forums General Programming How to use createDashedStroke Reply To: How to use createDashedStroke

#27243
atom
Keymaster
    • Topics: 159
    • Replies: 2945
    • Total: 3104
    • ★★★★★

    Yeah i didn’t get the chance to add embedded fonts as resources to Lua, but you access them as resources, i’ll add the needed methods now and post builds today, you can use that like so (in any paint callback) assuming your font is a resource named “MyCustomFontName”

    	f = resources:getResourceAsFont ("MyCustomFontName")
    	g:setFont (f)
    	j = Justification (Justification.centred)
    	g:drawText ("Bleh Meh 0123", 0, 0, 100, 100, j, false)
    Ctrlr