Article View: alt.lang.basic
Article #6Re: Mac BASIC & fonts
From: James Elkinton
Date: Thu, 29 Oct 1992 09:19
Date: Thu, 29 Oct 1992 09:19
58 lines
2668 bytes
2668 bytes
riel@unixg.ubc.ca (William Riel) writes: > In article <92Oct28.195707.35178@acs.ucalgary.ca> gerke@acs.ucalgary.ca (Ken > >One of our lecturers has developed some tutorial software in Microsoft's > >Quick Basic for Mac and it uses a couple of different fonts to > >highlight certain parts of the information displayed. Lately, on seemingly > >equivalent Macs, the font control goes away and all text looks the same. > > > >We have tried changing the fonts used in the desktop and varying the > >boot disk (system 6.05 and 6.07) used with the machines (Mac SE's and > >LC's) without success. What else is there to try? > > > > I can't say that I have any idea as to what would cause this problem > but I will say that you should make sure that the same fonts are installed > in each system. If I remember correctly the fonts are referenced by > a font number and if that number is not available the default font (usually > Geneva) will be used. > > A simple way to check on which fonts are being referenced by which numbers > would be to write a simple program in Quick Basic that prints out some > text and varying the font number. For example: > > For i = 0 to 15 > call textfont(i) > print "This is font number",i > next i > > You could compare this output with the font numbers that are being > used in the tutorial program and with a little luck should be able > to figure out what's going on. > > Please Note: It's been a while since I did anything with QB for the > mac and I don't have my manual with me so the above code is off the > top of my head and could be incorrect. > > Hope this helps! > > Bill > Almost correct. The code should be: FOR i=0 TO 15 TEXTFONT i PRINT "This is font number";i"." NEXT i Note that many fonts will not look correct unless you do a TEXTSIZE to an appropriate size for the given font. I don't know what exact font/size routines you are looking for, but the above code is an excellent first step. Then you can either use Font/DA Mover, or one of the other myriad applications like it, to find the sizes for the font(s) you like. Good luck! -- James Elkinton (bbs.zio@tsoft.sf-bay.org)
Technical Details
Message-ID:
<NqFeTB3w165w@tsoft.sf-bay.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!sgiblab!tsoft!zioReferences:
<1cn2dfINNc0@iskut.ucs.ubc.ca>Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.basic Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!sgiblab!tsoft!zio From: bbs.zio@tsoft.sf-bay.org (James Elkinton) Subject: Re: Mac BASIC & fonts Message-ID: <NqFeTB3w165w@tsoft.sf-bay.org> Sender: bbs@tsoft.sf-bay.org (BBS User) Organization: The TSoft BBS and Public Access Unix, +1 415 969 8238 References: <1cn2dfINNc0@iskut.ucs.ubc.ca> Date: Thu, 29 Oct 1992 09:19:10 GMT Lines: 58