home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!liuida!isy!lysator.liu.se!cmh
- From: cmh@lysator.liu.se (Magnus Holmgren)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Font-size independence GadTools package
- Message-ID: <1588@lysator.liu.se>
- Date: 6 Sep 92 11:50:34 GMT
- References: <9208261339.AA03776@csugrad.cs.vt.edu> <1992Sep4.125246.11423@ucc.su.OZ.AU> <1578@lysator.liu.se>
- Sender: news@isy.liu.se (Lord of the News)
- Organization: Lysator Academic Computer Society, Linkoping University, Sweden
- Lines: 26
-
- boberg@lysator.liu.se (Stefan Boberg) writes:
-
- >>Why bother, when you can use GadToolsBox V1.3 to generate perfectly working
- >>font adjusting routines for GadTools. I have used GTB to develop all the
- >>windows in my up and coming communications package, X-Comm. It generates code
- >>that can handle almost any font, and also allows proportional. Don't know why
- >>people bother doing it by hand?
-
- Because, GadToolsBox uses a *real* stupid algorithm.. It checks the height
- of the font and then scales all coordinates (in a byte-wasting way too,
- IMHO) according to this. It ain't hard to realise this isn't enough!
-
- > Does it really work with proportional fonts? I don't think so... At least
- >it didn't when I tried it. The real problem is that it does not have any
- >means of localizing programs easily. With localized programs you must have
- >a very flexible system in order to allow for greatly varying string lengths.
-
- Nope, in order to get proper routines, one must do a TextLength() type call
- for each string. This also "automagically" makes the interface work with any
- language without problems. It is quite hard work to do this by hand, but
- currently, there are no real alternatives (well, Guido seems to be rather nice,
- but I have only seen an early version without docs (included in MulitPlayer),
- since it wasn't really finished yet... :). At least if you're after a "pixel
- perfect" result..
-
- /cmh (cmh@lysator.liu.se)
-