This repository was archived by the owner on Apr 16, 2022. It is now read-only.
  
  
  - 
                Notifications
    
You must be signed in to change notification settings  - Fork 10
 
Text
        Atsuya Sato edited this page Nov 30, 2018 
        ·
        2 revisions
      
    iOS, OSX

textSize(32)
fill(0, 102, 153)
text("word", 10, 60)Draws a text.
iOS, OSX
print(textWidth("Hello"))returns the width of text string.
iOS, OSX
textSize(32)Sets the current font size.
iOS, OSX
textFont(UIFont(name: "ArialMT", size: 32))Sets the current font style.
iOS, OSX

textAlign(.center)
text("EFGH", 50, 50)
textAlign(.left)
text("IJKL", 50, 70)Sets the current alignment for drawing text.
※ Currently not supported align right. issue #108