examples/ios/fontShapesExample/README.md
This example demonstrates several methods of drawing strings and characters using TrueType font. In this demonstration, text is drawn in the following ways:
Character drawn as a font bitmap
Character drawn as a filled vector
Character drawn as filled polygons
Character drawn as unfilled polygons
String drawn as a font bitmap
String drawn as a filled vector
String drawn as an unfilled vector
This example covers the following functions:
anddrawStringAsShapes()```getCharacterAsPoints() and setFilled()getOutline() and getVertices() to access polygon information for strings and charactersIn the code, pay attention to:
drawString() which draws a bitmap of the font, and drawStringAsShapes() which draws the font as a vectorfont.getCharacterAsPoints() to return the point outline of a charactertestChar.setFilled(true) and testChar.setFilled(false)ofTTFCharacter.getOutline() to extract polygon outlines from a characterofTTFCharacter.getOutline()[i].getVertices() to extract vertices from each [i] polygon outlineWhen launching this app, you should see a white screen with green text displaying a variety of characters and text. The large individual characters should update when the screen is touched/dragged, and the bottom rows of text should display strings in bitmap and vector.
This Example uses the following classes: