[Gambas-user] Printer Font Size Problem

Ed & Clare Kelm twopilots at interisland.net
Sat Oct 26 00:48:18 CEST 2019


Benoit:  The fix works.  Thanks!

Tobi:  Thanks for showing me the easy way to get it installed!

Ed K.

On 10/19/19 9:14 AM, Ed & Clare Kelm wrote:
> Benoit:
>
> Thanks for the fix.  I have never compiled the IDE, so it will take me 
> some time to learn how.  What is the best link for instructions?
>
> Ed K.
>
> On 10/18/19 3:40 PM, Benoît Minisini wrote:
>> Le 18/10/2019 à 02:29, Ed & Clare Kelm a écrit :
>>> Benoit:
>>>
>>> My apologies.  The font is Droid Sans.  Thank you for explaining the 
>>> purpose of FontScale
>>>
>>> What is happening is "Paint.Font.Bold=TRUE" applies the FontScale to 
>>> the Font.Size, and so does "Paint.Font.Bold=FALSE".
>>>
>>> In my case the FontScale is ~0.97. so every time I change the state 
>>> of Font.Bold, the font shrinks a little bit.  In a page having lots 
>>> of individual bold words, the font shrinks to extremely tiny!
>>>
>>> That can't be right.
>>>
>>> Also shouldn't the Font.Size be what I set?   In other words, if I 
>>> say "Paint.Font.Size =14", shouldn't "a = Paint.Font.Size" set a to 14?
>>>
>>>
>>> Ed K.
>>>
>>
>> I made a fix in commit 
>> https://gitlab.com/gambas/gambas/commit/8a0c190b9540b9c4f7d06ee189c1513e954df8cf.
>>
>> If you can try it, tell me if it is ok for you.
>>
>> The Paint.FontScale trick is still not transparent. If you assign a 
>> font to Paint.Font, its size will be scaled according to 
>> Paint.FontScale. But if you change Paint.Font.Size directly, the 
>> scale won't apply anymore.
>>
>> Regards,
>>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----



More information about the User mailing list