Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fontsize
Message
From
13/01/1999 10:17:13
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00175424
Message ID:
00175434
Views:
27
Michelle ---

Let me expand a bit on my last post:
lScalable = .F.    && Can use *any* size
nHighSize = 0
nLowSize  = 0
lHasFont=AFONT(aSizes,"MS Sans Serif") 
IF lHasFont   && Font Exists
   IF ALEN(aSizes)=1 AND aSizes[1]=-1  
      lScalable=.T.
   ELSE
      nMax=ALEN(aSizes)
      nHighSize=aSizes[nMax]
      nLowSize =aSizes[1]
   ENDIF
ENDIF
Results are: If lScalable, can use any size, otherwise nHighSize and nLowSize contain the bounds of the font sizes.


>Is there a way to find out what is the smallest size for a font? I've been experimenting with resizing, and if I make the form too small, the fontsize goes to an illegal value. I'd like to know what is the lowest allowed so I can put a check for it. I want this to work for every font, though, so unless they all have the same lowest value, I need some way to check based on the font.
>
>Thanks,
>
>-Michelle
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform