On Sun, 04 Nov 2007 10:03:07 +0100
Tobias Giesen <[EMAIL PROTECTED]> wrote:
> Hello,
>
> after considering everything I believe that we need a new property in
> TCanvas. Custom controls that can't work with fractional positioning
> would have to set the property to false after the canvas is created.
> By default it would be true. Does that sound good? Should I do it?
>
> I don't think we can fulfill everybody's requirements without this.
> The alternative would be a new parameter for all functions that use
> BeginTextRender.
AFAIK other widgetsets have fractionals too and you don't need a
parameter.
For normal text rendering fractional should be enabled for the simple
reason that some fonts look badly without.
But TCanvas only supports pixel positioning of text, so you can not
start drawing in the middle of a word.
Solutions:
- either implement scale factors for TCanvas
- or add TextOut/TextExtent/... functions with floats to TCanvas.
Right?
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives