Jump to content

createfont


Klesh

Recommended Posts

So

1.Add to meta.xml

<file src="font.ttf" /> 

2.

Create

myFont = dxCreateFont( "font.ttf" ) 

For example you need use in text

  
addEventHandler( "onClientRender",root, 
    function( ) 
        dxDrawText( "My Text", 100, 350, 300, 350, tocolor( 255,255,0 ), 1, myFont ) 
    end 
)    
  

3.Full code

  
myFont = dxCreateFont( "font.ttf" ) 
  
addEventHandler( "onClientRender",root, 
    function( ) 
        dxDrawText( "My Text", 100, 350, 300, 350, tocolor( 255,255,0 ), 1, myFont ) 
    end 
) 

P.S Strange function dxCreateFont not colored.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...