On Sun, 4 Nov 2007 20:43:29 +0100
"Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I don't understand the issue. The Screen cannot display fractional
> character positions anyway, so why would this make any difference?
Yes, it can - with antialising. gtk/pango knows fractional positions
too, but it seems to use some clever roundings, so that the problem
is seldom visible.
Probably carbon knows more clever roundings too and the carbon intf is
just using some flags wrong. Looking at Tobias screenshots it seems the
characters absolute positions are rounded instead of using the
rounded character widths. I'm surprised that carbon has such a mode
because nobody wants that.
> My current guess is that the adequate position is being truncaded
> rather then rounded, and that would cause in the worse case a 1 pixel
> difference from where the character should be, is that it?
A rounding error of 1 pixel is normal. The screenshots show rounding
errors of 2 pixels.
> I also don't understand what would be the problem for SynEdit in
> having fractional positions turned on? If the carbon interface
> receives a non-integer position, just round it.
SynEdit is using monospace fonts and paints mostly whole tokens. That's
far worse than rounding fractionals wrong. It only works with monospace
fonts.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives