<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi all,<br><br>This week I managed to solve the initial difficulties of character border painting:<br></div></div></div><div>  - Change the size of the text portion which has border.<br>
(three distinct size attribute: height, ascent and size)<br></div>  - Part of the top border hanged out from the text portion (use SwAlignRect)<br></div>  - Calculating the cursor position and the selection rectangle must be changed to skip the border. (SwTxtCursor)<br>
</div> 
 - Page breaking uses the height attribute of the text portion, but line
 breaking use a distinct method for it. So I have to change either this 
method or the call of it. (It works by now, but there might be a better solution)<br></div><br></div>Besides this, I started to look up for special cases which behavior are still bugous.<br></div><div> - Text portions with different font have distinct border. The same problem at the point of the line break.<br>
</div> - Vertical text ("rotate" the borders)<br></div> -
 Drop caps (It can be a great territory for character border, but it 
seems other font effects like underlining/overlining don't work with 
drop caps either.)<br></div><div> - Numbering (can have an own style so a character border too)<br></div><div><br></div><div>This week hasn't numerous questions, but so many answers. :)<br><br></div><div>Best regards,<br>
</div>Tamás</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/15 Zolnai Tamás <span dir="ltr"><<a href="mailto:zolnaitamas2000@gmail.com" target="_blank">zolnaitamas2000@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi all,<br><br></div>    In the previous week I started to implement the painting. Some special problem came up, which might give me a hard time. The first very annoying one stem from the unpunctuality of the recent border painting (frame painting). It seems the border primitives are shifted toward the origo with some twips (1-2). In general it isn't a visible bug but character border magnifies the problem.<br>


</div><div>Some screen shot:<br></div><div>
<a href="https://docs.google.com/document/d/12bm6XOXlj6N79GNnvMKull5KY8xe63QIidrg67GnQyE/edit?pli=1" target="_blank">https://docs.google.com/document/d/12bm6XOXlj6N79GNnvMKull5KY8xe63QIidrg67GnQyE/edit?pli=1</a><br><br>
</div>    First I got lcl_AlighWidth() and lcl_AlignHeight() methods which make similar modification on coordinates, however removing them improve the accuracy (so I don't know why these methods used at all), but it is not enough. So two thing can be erroneous:<br>




<span title=""></span><div>    1, painting of border line primitive<br></div><div>    2, view transformation matrix (twip -> pixel)<br></div><div><br><br></div><div>Questions of these week.<br></div><div>- In what unit does the geometrical object are?<br>



 (logic\twip, convert to pixels for vcl processor)<br></div><div>- Which part of the text is repainted while typing? <br>(part of the text portion area, some character position before current cursor position)<br></div><div>



- How does the view changes the painting of objects? <br>(character border now: when just the part of the text portion is seen on the screen then the hole border is painted around this part and so border is in the middle of the portion. Columns with dotted separator line: some extra dot is painted on the edges of the screen, so scrolling up and down can make the dotted line more thicker.)<br>


</div><div>- How change the size of a text portion and make the cursor skip the border area? (start with SwTxtSizeInfo and SwTxtCursor)<br><br><br></div><div>Regards,<br></div><div>Tamás<br>
</div></div>
</blockquote></div><br></div>