<div dir="ltr">Hi all, just a follow up on some findings on this issue that I wanted to share.<div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 8, 2014 at 12:43 AM, Kohei Yoshida <span dir="ltr"><<a href="mailto:kohei.yoshida@collabora.com" target="_blank">kohei.yoshida@collabora.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class="">
> Does anyone know any point I should be looking at?<br>
<br>
</div>Based on my experience with the edit engine code and your description,<br>
the first place I would look at is class EditTextObject, and the<br>
EditEngine::CreateTextObject() method.<br></blockquote><div>Kohei, thanks for the tip - the issue seemed to be somewhere else however.</div><div><br></div><div>Summarizing once again, the problem was that I did get a text background color in edit-mode but not in non-edit mode. </div>

<div>The problem seems to lie in the drawinglayer module, which takes care of static rendering of text (thanks, Thorsten :-) ). In fact, currently, this module knows nothing about text-portion-specific text color. </div>
<div>
<br></div><div>Rendering of text in this module seems to work (_roughly_) in this way:</div><div>(1) information on font (text color, underlining, italic...) are passed from an external module [this is still subject of exploration],</div>

<div>(2) these font features are encapsulated in object of classes TextFooPortionPrimitive2D,</div><div>(3) finally, the class VclProcessor2D makes the actual rendering out of these primitives (by calling the ordinary text drawing methods from OutputDevice).</div>

<div><br></div><div>Getting back to text fill color, the issue must be fixed at all three levels:</div><div>(1') the fill color information should be passed by other modules,</div><div>(2') TextFooPortionPrimitive2D (probably TextSimplePortionPrimitive2D) should be able to carry information on text fill color</div>

<div>(3') VclProcessor2D should pass this information to OutputDevice appropriately.</div><div><br></div><div>I'm currently working on (1') and (2') but today I made an experiment and the problem at level (3) is basically been figured out.</div>

<div><br></div><div>Best,</div><div>Matteo</div><div><br></div><div><br></div><div><br></div><div> </div><div> </div></div><br></div></div>