Home › Forums › General › Programming › How to use createDashedStroke › Reply To: How to use createDashedStroke
August 8, 2014 at 4:01 pm
#27243
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)