[Gambas-user] Printer Font Size Problem
Ed & Clare Kelm
twopilots at interisland.net
Fri Oct 18 01:49:39 CEST 2019
Benoit:
Setting Paint.FontScale to 1 solves my particular problem, but I don't
understand why changing the value of the Bold property applies FontScale
to the font size. That doesn't seem right.
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?
> What is the value of Paint.FontScale property?
> Which font do you use?
>
More information about the User
mailing list