[futurebasic] [FB^3] System Font Changing, Port Problems, etc

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: Jamin <benjamen@...>
Date: Thu, 23 Sep 1999 10:47:43 +1000
I have found one if the problems with the system font changing, window titles being messed-up, etc (by narrowing down my buggy code!, notice the plural Staz ;->)

If you run Example One below, it will change the system font for the Finder and everything else!  It seems to be because there is no window open when the call is made to "TEXT".  Note that this only happens in FB3, as FB2 protects you from such stupidity.  The second example will correct the problem, so that you can get back to work.

Jamin


------- Cut Here For Example One --------
OUTPUT FILE "Change System Font"

DIM gFontNum%
CALL GETFNUM("Chicago", gFontNum%)
TEXT gFontNum%, 10, _outlineBit%

WINDOW 1
END


------- Cut Here For Example Two --------
OUTPUT FILE "Fix System Font"

DIM gFontNum%
CALL GETFNUM("Chicago", gFontNum%)
TEXT gFontNum%, 12, 0,0

WINDOW 1
END