Jump to content

dxDrawText Quality argument


.:HyPeX:.

Recommended Posts

Posted
--New Syntax 
element dxCreateFont ( string filepath[, int size=9, bool bold=false, string quality="default" ] ) 

quality can be "default", "draft", "proof", "nonantialiased", "antialiased", "cleartype" and "cleartype_natural", as far as I understand from the source code.

There are some requirements for "nonantialiased", "antialiased", "cleartype" and "cleartype_natural", per WINVER (Windows Version, I guess?) or something, but I don't really understand them. Have a look yourself if you want to https://github.com/Kernell/mtasa-blue/b ... .h#L42-L50

Posted
HypexFont = dxCreateFont( "FontName.ttf", 20 ) 
posOne = 0 
posTwo = 0 
posThree = 0 
posFour = 0 
red = 255 
green = 255 
blue = 255 
dxDrawText("HYPEX FONT TEST", posOne, posTwo, PosThree, posFour, tocolor(red,green,blue), 1, HypexFont) 

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...