[Gambas-user] Pixels and Debian

Benoît Minisini gambas at ...1...
Sun Jun 24 22:47:44 CEST 2012


Le 23/06/2012 16:44, Willy Raets a écrit :
> On vr, 2012-06-22 at 21:56 +0200, Benoît Minisini wrote:
>> Le 20/06/2012 18:10, Willy Raets a écrit :
>>> Hi all,
>>>
>>> I've been testing some of my applications written on Ubuntu 10.10 on
>>> other distributions. I have noticed that on Debian 6.0.3 and 4 (unlike
>>> on Ubuntu 10.04 and 10.10 or Lubuntu 12.04) strange things happen, both
>>> with Gambas 2.24 and 3.1 written applications.
>>>
>>> What happens is all pixel related it seems.
>>> Some examples you can simply reproduce:
>>> 1. If I place a 48x48 png in a PictureBox of 48x48 (property Stretch set
>>> to False) the image displays correct in Ubuntu and Lubuntu but seems to
>>> be to big for the PictureBox when run on Debian.
>>>
>>> 2. A form with width set to 1014 doesn't fit on Debian with a screen
>>> resolution of 1024 width! It does on Ubuntu and Lubuntu
>>>
>>> 3. When drawing a text on a DrawArea of width 384 and the Draw.Text X
>>> position is 50 the text fits in the Drawing area on Ubuntu/Lubuntu
>>> (there is even space left over between the end of the text and the end
>>> of the DrawArea), but on Debian the end of the text is not within the
>>> DrawArea and thus cut off!
>>>
>>> Anyone else has this problem? Is it a bug in Debian or both Gambas 2 and
>>> 3
>>>
>>> Willy
>>>
>>
>> By default, the dimensions of all forms defined in the IDE (with their
>> controls) is proportional to the font size.
>>
>> If you want absolute pixel sizes, you have to set the "Scaled" virtual
>> property of the form in the IDE, or move/resize your controls by hand.
>>
>> Regards,
>
> Setting the Scaled property on the form did solve part of the problem.
>
> 1. Pixel of 48x48 now fits PictureBox of 48x48 on Debian 6.0.4
>
> 2. Form width of 1000 pixels now correctly fits within screen width of
> 1024 on Debian 6.0.4
>
> 3. Drawing text on a DrawArea still poses a problem on Debain 6.0.4
> (see attached screens -> Ubuntu 10.10 -> text fits; Debian 6.0.4 -> text
> goes beyond the DrawArea -> so doesn't fit)
> I believe Ubuntu 10.04 having the same problem as Debian 6.0.4.
>
> I build a small sample application where you can see the problem
> yourself (depending on what distro you run it).
> Any suggestions on how to solve this drawing text on a DrawArea?
>
> Willy
>

Why the text should fit the wame way? Apparently you are not using the 
same font between Ubuntu and Debian.

-- 
Benoît Minisini






More information about the User mailing list