On Mon, 05 Nov 2007 01:40:06 +0100
Giuliano Colla <[EMAIL PROTECTED]> wrote:
> Mattias Gaertner ha scritto:
>[...]
> What I gathered from the discussion is that SynEdit, and other custom
> controls rely on width(char) x number of chars in string =
> width(string). Therefore they can only work with fpFixed. If such is
> the case then Font Pitch should be properly set, so that an
> appropriate font can be selected/adapted from the font engine of the
> widgetset. If the widgetset interface does it wrong, it is a
> widgetset interface problem. But if widgetset iterface isn't properly
> told what to do, then that's an LCL problem.
Right.
> 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.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives