Help for FastText library (version 1.xx)




	!     1.22     
	  . (     ).
	       (   ..)
	(c) 2007    MixailV aka Monster^Sage [monster-sage@mail.ru]




!   FastText   Blitz3D 1.98 & Blitz3D 1.99 !

; v1.22
; -    OpenType (*.OTF)
; -        *.TTF  *.OTF
;       (TrueType & OpenType)      .
; -    DLL  Blitz3D 1.98  Blitz3D 1.99
; -          ( @)

; v1.21
; -      
;   (     LoadFont, .      )
;   +   FastText_Example_Antialising.bb

; v1.1
; -   TextRect ( +   FastText_Example_TextRect.bb)




LoadFont (fontname$, height%, bold%, italic%, underline%, angle#, smooth%, encoding%)
	  (   )     :
		fontname$ -     ,     .
			  *.OTF, *.TTF, *.FON, *.FNT, *.FOT  .
			  *.OTF & *.TTF       .
			  "@"    (   )
			     ( ) (  
			  ).

		height -    
		bold -  ""  (0  1)
		italic -   ()  (0  1)
		underline -   (0  1)
		angle# -    (in degree)
		smooth -    (   1.21),   :
			FT_DEFAULT = 0		-      (     )
			FT_NONANTIALIASED = 1	-   (   ),    .
			FT_ANTIALIASED = 2	-   -      (      !)
			FT_CLEARTYPE = 3	- ClearType (c)Microsoft  -?! ,   
 
		encoding - ,          ( =  FT_ASCII  FT_UNICODE)	
	  .



SetFont (font%)
FreeFont (font%)
FontWidth ()
FontHeight ()

	/\    Blitz3D



Text (x%, y%, text$, HorisontalAlign%=FT_LEFT, VerticalAlign%=FT_TOP, encoding%=FT_UNICODE)
	      (      ,       )
	    :
		FT_LEFT = 0	-   
		FT_CENTER = 1	-  
		FT_RIGHT = 2	-   
	    :
		FT_TOP = 0	-  
		FT_MIDDLE = 1	-   ( )
		FT_BOTTOM = 2	-  
		FT_BASELINE = 3	-   
	/\    Blitz3D    encoding% -     txt$  ( =  FT_ASCII  FT_UNICODE)



TextRect (x%, y%, width%, height%, text$, formatting%=FT_LEFT, encoding%=FT_UNICODE)
	       
	(      ,       )
	(    Viewport)
	x,y,width,height - ,         
	    :
		FT_LEFT = 0	-   
		FT_CENTER = 1	-  
		FT_RIGHT = 2	-   
	     :
		FT_NOBREAK = 256	-     
		FT_NOCLIP = 512		-         
		FT_CALCRECT = 1024	-   ,      ( ,   );
					     ,    !
	   .
	  FastText_Example_TextRect.bb    .



StringWidth (text$, encoding%=FT_UNICODE)
StringHeight (text$, encoding%=FT_UNICODE)

	/\    Blitz3D    encoding% -     txt$  ( =  FT_ASCII  FT_UNICODE)


TextBackground (red%=-1, green%=-1, blue%=-1)
	      (    0  255)
	   ,   ,    !

