Jump to content

dxText size in all resolution


pepsi18

Recommended Posts

HEL PLISS

Is there any way to adapt the text size to all resolutions?
 

local sx, sy         = guiGetScreenSize()
local font     = dxCreateFont("font.ttf", 16)
dxDrawText(playername, sx * 0.3130, sy * 0.3167, sx * 0.4484, sy * 0.3704, tocolor(255, 255, 255, 255), 1, font, "center", "center", false, false, false, false, false)     

 

Edited by pepsi18
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...