- do {
- t.resize(text_len);
- length = _font->measureString(t);
- } while (length > max_length && text_len-- > 0);
-
- // justify the text
- switch (_justify) {
- case otk::Style::RightJustify:
- x += max_length - length;
- break;
- case otk::Style::CenterJustify:
- x += (max_length - length) / 2;
- break;
- case otk::Style::LeftJustify:
- break;
+ do {
+ t.resize(text_len);
+ length = _font->measureString(t);
+ } while (length > max_length && text_len-- > 0);
+
+ // justify the text
+ switch (_justify) {
+ case otk::RenderStyle::RightJustify:
+ x += max_length - length;
+ break;
+ case otk::RenderStyle::CenterJustify:
+ x += (max_length - length) / 2;
+ break;
+ case otk::RenderStyle::LeftJustify:
+ break;
+ }