[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GDK
On Tue, Jul 14, 1998 at 12:56:18PM +0200, Preben Randhol wrote:
>
> I would like to make a routine for block justifying text, but I need
> to figure out how to calculate the length of a line/word so that I can
> figure out where to add "spaces".
OK, the files you are interested in are in src/dispmanager. It is
gtkText::realize in gtkText.cc that does the text justifying using
gdk_text_width to calculate the length of a string.
May I also mention gtk-XmHTML, which is a gtk object used to display html,
we don't use it due to some restriction in it, but maby you can... it is
part of the gnome-libs package, available with the rest of Gnome at
ftp://ftp.gnome.org/pub/GNOME
---------------------------------------------------------------
Name: Hakan Ardo
E-Mail: hakan@debian.org
WWW: http://www.ub2.lu.se/~hakan/sig.html
Public Key: Try "finger hakan@master.debian.org"
Fingerprint: E9 81 FD 90 53 5C E9 3E 3D ED 57 15 1B 7E 29 F3
Interests: WWW, Programming, 3D graphics
Thought for the day: As long as one understands, the
spelling does not matter :-)
---------------------------------------------------------------
PGP signature
- Follow-Ups:
- Re: GDK
- From: Preben Randhol <randhol@dusken4.samfundet.ntnu.no>
- References:
- GDK
- From: Preben Randhol <randhol@dusken4.samfundet.ntnu.no>
- GDK
- From: Preben Randhol <randhol@dusken4.samfundet.ntnu.no>