ios - SpriteKit SKLabelNode font size to pixels -


what's clean way use sklabelnode's fontsize map pixels? i'm trying place text inside box fits in fixed box proportionately.

according apple's documentation, 1 font point equal 2 pixels.

for example, 90 pixel font equal mytext.fontsize = 90 / 2


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -