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

List:       koffice-devel
Subject:    Re: drawParagString confusion
From:       David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date:       2002-12-27 20:33:02
[Download RAW message or body]

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

On Friday 27 December 2002 20:47, Tomasz Grobelny wrote:
> I inserted such a piece of code into drawParagStringInternal(...) //in 
> kotextparag.cc
> /* start here */
> for(int i=0;i<len;i++)
>  cerr<<s[start+i];
> cerr<<endl;
> /* end here */
> 
> What I got on konsole when string "qazwsx" was typed into KWord was:
> qazw
> s
> xedc
> 
> Note that I got 3 lines out of 1 word. Is it the right behaviour? The (output) 
> lines layout changes as I change font size but "qazwsxedc" is still one line 
> in KWord.

It's called "internal" for a reason ;)

Complex problem, we draw together all the letters that have the same "x adjustement",
i.e. those that we can draw together in a WYSIWYG way. After some letters the
calculation of the hi-res position gives a different adjustement, i.e. we need to start
drawing the "s" (in your case) one pixel more to the left or the right than it would
be if it was painted together with the rest.

Maybe with Xft2 we can have real font zooming and we wouldn't need this ugly 
mechanism anymore...

- -- 
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Klarälvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+DLkA72KcVAmwbhARAgz7AKCf/y4bOAXGtVMJlBBQ8SahTuzKwwCeOLO2
yVdvDmsO2Pbks0PTyX6Ov8Q=
=mElC
-----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