Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
lcFont = "Courier New" && or whatever
IF FONTMETRIC(16, lcFont, 10) = 54
? "This is fixed pitch"
ELSE
? "It's proportional"
ENDIF
Afont(af)
For n = 1 To Alen(af)
b = Fontmetric(16, af(n), 10)
If Not Bittest(b, 0)
? af(n)
?? b
Endif
Next
Consolas 54
Courier 48
Courier New 54
Fixedsys 48
FoxFont 0
Lucida Console 54
Lucida Sans Typewriter 54
Terminal 48
LOCAL ARRAY laFonts(1)
LOCAL lnI
AFONT(laFonts)
FOR lnI = 1 TO ALEN(laFonts)
? FONTMETRIC(16, laFonts(lnI), 10), laFonts(lnI)
ENDFOR
[b]Value Family Examples[/b]
7 Special/various MS Outlook, Wingdings
23 Serif Clarendon, Times New Roman
33 System System
39 Sans serif Univers, Verdana
54 Fixed pitch Courier New, Lucinda Console
71 Cursive Lucinda Handwriting, Vivaldi
87 Decorative Broadway, Stencil
lcFont = "Courier New" && or whatever
IF TXTWIDTH("M", lcFont, 20) = TXTWIDTH(".", lcFont, 20)
? "Fixed pitch
ELSE
? "Proportional
ENDIF
AFONT(laFonts)
FOR lnI = 1 TO ALEN(laFonts)
? laFonts(lnI)+" is "+IIF(TXTWIDTH("M",laFonts(lnI),24)=1.0,"Fixed Width","Proportional")
ENDFOR