<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 18 oct. 2019 à 04:59, Tony Morehen <<a href="mailto:tmorehen@ajm-software.com">tmorehen@ajm-software.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">While you are looking at the printer code, I've noticed the following:<br>
1) In Printer_Begin(), I set Paint.Font to my target font.<br>
2) When Printer_Draw is raised, Paint.Font has changed back to the <br>
default font. I expected that Paint.Font, once set, would remain <br>
unchanged for the entire print session. Instead, I have to reset it in <br>
every draw event.<br>
<br>
On 2019-10-17 7:33 p.m., Benoît Minisini wrote:<br>
> Le 18/10/2019 à 02:29, Ed & Clare Kelm a écrit :<br>
>> Benoit:<br>
>><br>
>> My apologies. The font is Droid Sans. Thank you for explaining the <br>
>> purpose of FontScale<br>
>><br>
>> What is happening is "Paint.Font.Bold=TRUE" applies the FontScale to <br>
>> the Font.Size, and so does "Paint.Font.Bold=FALSE".<br>
>><br>
>> In my case the FontScale is ~0.97. so every time I change the state of <br>
>> Font.Bold, the font shrinks a little bit. In a page having lots of <br>
>> individual bold words, the font shrinks to extremely tiny!<br>
>><br>
>> That can't be right.<br>
>><br>
>> Also shouldn't the Font.Size be what I set? In other words, if I say <br>
>> "Paint.Font.Size =14", shouldn't "a = Paint.Font.Size" set a to 14?<br>
>><br>
>><br>
>> Ed K.<br>
>><br>
>><br>
> <br>
> My apologies too, I now understand the problem. You are right, the font <br>
> scale is not applied once, but each time the Paint.Font property is <br>
> modified. This is not a problem if you set the font with a new font, but <br>
> it is if you change just a property of the font.<br>
> <br>
> I need to think about that mess...<br>
> <br>
<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Yes because paint is a context class and is new each paint.begin<>paint.end.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>