home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13127 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.9 KB

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