good evening,
I always use hudmessage() to make screen messages in acs, but only now have I noticed that putting the game at 16: 9 all text looks like ass!
trying to raise the resolution with sethudscale() makes the font too small.
How do I resolve?
font is scaled badly in acs
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: font is scaled badly in acs
You can't. This is caused by the font not being scaled by an integer multiplier. If you do not want that you either have to use a smaller or larger scale.GGianpy wrote:good evening,
I always use hudmessage() to make screen messages in acs, but only now have I noticed that putting the game at 16: 9 all text looks like ass!
trying to raise the resolution with sethudscale() makes the font too small.
How do I resolve?
If you designed for a size of 640x480 and go to 720 pixel height from there you get a setup where only every second pixel is doubled and that can look really bad.
Re: font is scaled badly in acs
I found a way using sethudsize (getscreenwheight(), getscreenheight()) and get a hud scaled correctly, but it gets smaller based on the screen.
so if one plays with a 4k screen one will see extremely small elements.
How can I solve in acs?
if the acs can't fix it, the zscript can?
if it can, how? (with examples).
so if one plays with a 4k screen one will see extremely small elements.
How can I solve in acs?
if the acs can't fix it, the zscript can?
if it can, how? (with examples).
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49234
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: font is scaled badly in acs
You have to set a size of which the screen size is a multiple in full integers, e.g. for 1920x1080 or for 3840x2160, you'd have to set 960x540 which is either 1/2 or 1/4 of the full screen size. But you will have to do the math yourself to find the best fitting size.
Re: font is scaled badly in acs
ok, i tried to put 960x540 but it comes out ultra widened.
One thing I noticed when entering 640x480 is that point 0 is not really at the top left of the screen (in 16:9) but 107 pixels ahead.
Why?
Using sethudsize(getscreenwheight(),getscreenheight()) instead appears at the actual point 0.
could you give me an example to try to solve my problem?
One thing I noticed when entering 640x480 is that point 0 is not really at the top left of the screen (in 16:9) but 107 pixels ahead.
Why?
Using sethudsize(getscreenwheight(),getscreenheight()) instead appears at the actual point 0.
could you give me an example to try to solve my problem?
Re: font is scaled badly in acs
ok, i found a way to fix it!
It was enough to change this setting to 2.0, by default it is 1.0
how can i do that in my mod by default it becomes 2.0?
It was enough to change this setting to 2.0, by default it is 1.0
how can i do that in my mod by default it becomes 2.0?
Re: font is scaled badly in acs
i also asked the discord server but i'm stupid and i don't know what "Math "i have to do.
I'm not as smart as you want me to be, can you tell me the mathematical solution?
I'm not as smart as you want me to be, can you tell me the mathematical solution?