FontQuantity
FontQuantity NumberOfFonts
 
Parameters:

    NumberOfFonts = The size of the Font Table
Returns: NONE
 

      FontQuantity lets you expand/shrink the number of available fonts. So if you ever run out, you can request more at any time.




FACTS:


      * You can also lower the font quantity if you like (which can save some memory), but any font outside of the new range will be deleted.

      * Font quantity indexes is limit to 2^24 banks (over 24 million).

      * FontQuantity is irrelevant for users using dynamic font media creation commands. (See LoadNewFont etc) Since those command will auto exapnd the font table when needed.




Mini Tutorial:


This example simply gets the current font quantity, display it, then doubles the quantity and displays it again.

  
; Read the Default Font range
  AvailableFonts=GetFontQuantity()
  
; display this value to the screen
  Print AvailableFonts
  
; double the available number of Fonts
  FontQuantity AvailableFonts*2
  
; display the new new Font quanity
  Print GetFontQuantity()
  
; display the screen and wait for a key press
  
  Sync
  WaitKey
  
  



This example would output (This depends upon what version of PB your running, so the results may differ).

  
  64
  128
  

 
Related Info: GetFontQuantity | GetFreeFont | LoadNewFont :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com