[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    VPainter (Re: Explanation on WP vs DTP modes in KWord)
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-12-02 11:49:49
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 02 December 2002 11:03, Simon Hausmann wrote:
> It would be interesting to hear say David's opinion on that, as
> someone who has really worked a lot with QPainter.

Actually I know quite little of the QPainter/QPaintDevice internals,
and I haven't looked a VPainter - this explains my silence on this sub-thread :)

My dream would be something that has more or less a QPainter-like API (*),
including matrix-based transformations and clipping, but which also
does the things that Qt doesn't do and that we need: 
proper zooming of fonts, kerning, outline mode, etc.
If that means treating fonts as vector graphics, why not, I have nothing against that.

(*) I do not see what Dirk means by "QPainter as API is (at least IMHO)
inconsistent and ugly".
For sure we do need two coordinate systems. Painting anything in a frame
uses a translation so that the frame can simply draw its stuff at (0,0)
and doesn't have to care where it really ends up (particularly useful
for copied frames, nested inline frames, etc.)

The fact that coordinates are integers.... in the above "dream" the app
could do everything in 'pt' using doubles, indeed ... but experience has
shown that this leads to complex rounding errors, on low-resolution
outputs, like the screen :). I wonder how you plan to solve this.
(For instance for font zooming, or for stuff like "this frame border at this
zoom level would be 0.2, but we want to see it, so make it 1 pixel,
like KoBorder can do. Such thing means that the app needs some control
at the "pixel" level.).

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE960je72KcVAmwbhARAnVSAJ9IrIbTgO1+Z2Zl9Q/O4q1hDgnkvACdHT1O
6YnisIs+2R+amt8W9sG4Imk=
=hmlQ
-----END PGP SIGNATURE-----

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic