[Gambas-user] Printer Font Size Problem

Ed & Clare Kelm twopilots at interisland.net
Thu Oct 17 23:13:08 CEST 2019


Benoit:

Answers to your questions are below.  I did not set the fFontScale or 
Font properties; I just used whatever they defaulted to.    ASee my 
answers below.

Thanks!

Ed K.

On 10/17/19 12:58 PM, Benoît Minisini wrote:
> Le 17/10/2019 à 20:35, Ed & Clare Kelm a écrit :
>> The printer font size has a new problem which has just appeared 
>> within the last month.
>>
>> Setting the size results in a size slightly smaller.
>> Setting bold to either true or false reduces the size by a small amount.
>>
>> This test code in a the printer draw event results in the console 
>> output shown below it.
>>
>> Public Sub Printer1_Draw()
>>
>>    Print Paint.Font.Size
>>
>>    Paint.Font.Size = Paint.Font.Size
>>    Print Paint.Font.Size
>>
>>    Paint.Font.Size = 14
>>    Print Paint.Font.Size
>>
>>    Paint.Font.Bold = True
>>    Print Paint.Font.Size
>>
>>    Paint.Font.Bold = False
>>    Print Paint.Font.Size
>> End
>>
>
> Which version of Gambas?
3.14
> What is the value of Paint.FontScale property?
0.972245914570579
> Which font do you use?
0x17f0dd8



More information about the User mailing list