Cinder has a very good text support—even for those whose native language alphabets consist of non-English alphabet characters.
Let's search for a folder named TextBox
in the samples
directory. Open xcode/TextBox.xcodeproj
(vc10\TextBox.sln
, if you are a Windows user). Build and run the project. Click anywhere in the window. When you click-and-drag, the text box changes its width. Even more, the text inside it wraps accordingly. A rectangle that represents the full width and height of the space the text occupies is being drawn behind it.
Let's close the window and try to make some changes (yes I lied, we are making changes again) to the application. Open TextBoxApp.cpp
and find a block of code that looks like the following:
void TextBoxApp::render() { string txt = "Here is some text that is larger than can fit naturally inside of 100 pixels.\nAnd here is another line after a hard break.";
Try to change the text within the quotes (don't be afraid to use unicode characters):
string...