# Candera Device

#### RenderTarget events

RenderTarget now supports attaching listeners for catching events before and after SwapBuffers is called.

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

</div></div></div>#### RenderDevice::ActivateShader deprecated

RenderDevice::ActivateShader has been deprecated. [Renderer::ActivateShader](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_renderer.html#aae13461c655c45cbfbcf4a1fd9697569) shall be used instead.

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

</div></div></div>#### TextBrush Line Spacing in Pixels/Factor of Height

A flag has been added to [TextBrush](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_text_brush.html "Output alpha only glyph data. A color may be specified, which is applied to the color channels...") for line spacing. When this is set to true, line spacing will be in pixels. When this is set to false, line spacing will be a factor by which [TextRendering::Metrics::lineHeight](http://dev.doc.cgistudio.at/APILINK/struct_candera_1_1_text_rendering_1_1_metrics.html#a6b46cc61bde72d6be7737f466906b9f9 "Line height of the font (lineGap = lineHeight - (ascender - descender)).") from [TextRendering::Style::GetMetrics()](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_text_rendering_1_1_style.html#af05dbeaab5e111fb4fea42bb227d3b9b) is multiplied.

<div class="contents" id="bkmrk-see-also%3A-textbrush%3A"><div class="textblock"><dl class="see"><dt>**See also:**</dt><dd>[TextBrush::PixelwiseLineSpacing](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_text_brush.html#a83c9667de0d3c9ebf8063dea7037fab4).</dd></dl></div></div>---