Jump to content

font quality on low screen resolutions


Recommended Posts

hi i am using dx functions as almost every scripter and i ran into a problem

due to scale(i guess) on lower resolutions quality of font is being lost

i'm scaling font like this

sw,sh = guiGetScreenSize() 
local scaleX,scaleY = 1/1920*sw, 1/1080*sh 
dxDrawText(...,scaleX,scaleY,...) 

and basically on my resolution (1920x1080) font is basically in HD, while on lower resolutions such as 1366x768 quality is completely ruined.

how can i fix this problem?

Link to comment

That's an issue with the way you are scaling in, what you want is a constant font size but also a solution to the problem with different screen resolutions. Try some kind of docking mechanism like making the dx text 800 pixels wide and dock it at center bottom, that would work on all resolutions.

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