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

List:       koffice-devel
Subject:    Re: karbon, kpainter and kword
From:       Dirk_Schönberger <dirk.schoenberger () sz-online ! de>
Date:       2003-06-17 20:16:30
[Download RAW message or body]

> > > Not sure how to obtain the glyph number, but I guess so.
> > >
> >
> > int glyphForChar (QString & string, int position)
> > ?

> Ok (although some details will have to looked into, e.g. do I need to
store that
> number between layouting and painting time, or is it at painting time
only, in which
> case I don't see the point in not calling a drawString variant directly).

drawString can be used for non-typographical layout in, say, a text editor,
or webbrowser

> But I see how Thomas' idea would make things a bit simpler in this area:
> when painting we could just say "please paint this run of text so that it
> fits in a rect of size w2*h2". From there one can determine the matrix
> that's needed, which is as simple as (w2/w, h2/h) scaling factors.
> So whether the calculation of the scaling factors is done in KPainter or
> in kotext, doesn't make much difference.

a run of text would need yet another datastructure to design. Any ideas
about this?

Regards
Dirk





_______________________________________________
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