.:HyPeX:. Posted September 6, 2015 Share Posted September 6, 2015 According to 1.5 changelog, quality argument was added to dxCreateFont, but there's no documentation there, anyone could tell how this parameter works and where it goes? Thank you. PD: There's some github proofs, but cant find anything about the correct way. https://github.com/multitheftauto/mtasa-blue/pull/4 Link to comment
Addlibs Posted September 6, 2015 Share Posted September 6, 2015 --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 Link to comment
.:HyPeX:. Posted September 6, 2015 Author Share Posted September 6, 2015 Maybe it has something to do with older versions of windows not supporting them by being too old software? Thank you anyways, that'll do. Link to comment
-ffn-python Posted September 6, 2015 Share Posted September 6, 2015 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) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now