Zitat von Giuliano Colla <[EMAIL PROTECTED]>:
> Mattias Gaertner ha scritto:
> > On Mon, 05 Nov 2007 01:40:06 +0100
> > Giuliano Colla <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >> Font size can only be given in either an integer number of pixels, or
> >> in Point Size, which (currently) gets rounded to an integer number of
> >> pixels, and therefore, given usual font metrics, fpFixed should never
> >> give rise to a fractional width.
> >>
> >
> > Not right.
> > For example: Character Size 10 (10 pixels long and 7 pixels
> > wide). Now use Size 9. The Height is integer and width must be rounded
> > or using fractionals. For most applications rounding is ok. For layout
> > programs it is not.
> >
> >
> >
> Then an extra TFont property (such as FractionalAllowed), could make
> sense, to let the widgetset know that the application is unable to deal
> with fractional values, and font should be set accordingly.
Yes, but without a TCanvas scale factor or float type positions you can not use
it. So my conclusion is:
fractionals are needed in some rare cases, but supporting them requires a lot of
work. Coming back to the origin of the thread: Especially porting a Delphi
application should not need it, because the VCL does not support them. The LCL
carbon intf must be fixed, not the LCL.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives