- // Create RGBA texture for all the text styles (without the text itself)
- PixelData styleData = mTypesetter->Render( size, textDirection, Text::Typesetter::RENDER_NO_TEXT, false, Pixel::RGBA8888 );
-
- AddTexture( textureSet, styleData, sampler, textureSetIndex );
+ // Create RGBA texture for all the text styles that render in the background (without the text itself)
+ PixelData styleData = mTypesetter->Render(size, textDirection, Text::Typesetter::RENDER_NO_TEXT, false, Pixel::RGBA8888);
+ AddTexture(textureSet, styleData, sampler, textureSetIndex);
+ ++textureSetIndex;
+ // Create RGBA texture for overlay styles such as underline and strikethrough (without the text itself)
+ PixelData overlayStyleData = mTypesetter->Render(size, textDirection, Text::Typesetter::RENDER_OVERLAY_STYLE, false, Pixel::RGBA8888);
+ AddTexture(textureSet, overlayStyleData, sampler, textureSetIndex);