Forum Archive

Make text display as images

techteej

So I looked on here because I could've sworn someone posted something like this before, but is it possible to make text display as images in a scene? Trying to fix the blurry text in a scene after converting to Xcode issue.

[deleted]

@techteej This?

from scene import *

class ImageScene (Scene):
    def draw(self):
        image(render_text('Abc')[0], 0, 0)

run(ImageScene())
techteej

@tony That is it. Thank you.

ccc

You can also create scene.Layer that is rightsized to your text... http://omz-forums.appspot.com/pythonista/post/5242282462674944