# Text Engine

## <a class="anchor" id="bkmrk--1"></a>Text Alignment

Enumeration type TextAlignment has been replaced by new enum types HorizontalAlignment and VerticalAlignment.

<div class="contents" id="bkmrk-horizontalalignment%3A"><div class="contents"><div class="textblock">

- HorizontalAlignment: HLeft, HCenter, HRight, HStretch
- VerticalAlignment: VTop, VCenter, VBottom, VStretch

---

</div></div></div>#### Integrated FreeType 2.5

The following new options are available for configuration from CMake:

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

- FT\_CONFIG\_OPTION\_NO\_ASSEMBLER
- FT\_CONFIG\_OPTION\_SYSTEM\_ZLIB
- FT\_CONFIG\_OPTION\_DISABLE\_STREAM\_SUPPORT
- FT\_CONFIG\_OPTION\_USE\_PNG
- FT\_CONFIG\_OPTION\_PIC
- TT\_CONFIG\_OPTION\_SUBPIXEL\_HINTING
- TT\_CONFIG\_OPTION\_UNPATENTED\_HINTING All these options are disabled by default.

---

</div></div></div>#### RgbColor deprecated

The class Candera::TextRendering::RgbColor has been deprecated. [Candera::Color](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_color.html "Represents a color by its red-, green-, blue- and alpha-value. Provides color arithmetic functions an...") shall be used instead.

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

</div></div></div>#### Text Measure Context

TextRenderer::GetBoundingRectangle is deprecated. Instead TextMeasureContext is available to provide similar functionality, in a more configurable manner. GlyphTextMeasureContext is a class provided to emulate the behavior of GetBoundingRectangle for ActualHeight alignment parameter. The rectangle returned by this class may be offset from the text position. To have the same alignment as before when rendering the text, the inverse of this offset needs to be applied. CursorTextMeasureContext is a class provided to emulate the behavior of GetBoundingRectangle for ConstantHeight alignment parameter. The rectangle returned by this class does not usually have an offset and it contains the final advancement of the cursor. From the two rectangles, all values returned by GetBoundingRectangle may be computed.

---