# TextEngine

#### Language Dependent Fonts

Extended the [TextRendering::Style](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_text_rendering_1_1_style.html "Defines a text style.") to support language dependent fonts. A style can change the font to a culture dependent font when the culture has been changed. Further information can be found in the Changelog entry of SceneComposer and the [TextRendering::Style](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_text_rendering_1_1_style.html "Defines a text style.") documentation.

<div class="contents" id="bkmrk-"><div class="contents"><div class="textblock">---

</div></div></div>#### Alignment Behavior

The TextEngine provides a flag with [TextRendering::LayoutingOptions::IsOrientationRealignmentEnabled](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_text_rendering_1_1_layouting_options.html#a73c9bd3fe7ff3841f7758a37c62bf6ee) to switch between different solutions in case of a text which is too long for the maximum width. This flag decides which part of the text will be clipped in cases of centered or right-aligned texts. The flag provides two choices:

<div class="contents" id="bkmrk-show-the-text-which-"><div class="contents"><div class="textblock">1. Show the text which is normally placed within the visual bounding box.
2. Show the beginning of the text within the visual bounding box providing the ability to read the beginning of the text.

</div></div></div>The [TextNode2D](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_text_node2_d.html "TextNode2D is a RenderNode that renders text using the attached BitmapBrush effect.") handles this by using the first solution when text trimming is disabled and the second one when it is enabled.

<div class="contents" id="bkmrk--0"><div class="contents"><div class="textblock">---

</div></div></div>#### Minor Changes

Further optimized the visual output of justified text. And fixed some alignment issues.

---