Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Drawtext is blurred

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 13th Jan 2024 09:39
HI

On windows, if I use a big virtualresolution, the text drawn with drawtext() are blurred.

Do you know how I can fixe that ?

Thank you.
AGK2 tier1 - http://www.dracaena-studio.com
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 13th Jan 2024 20:16 Edited at: 13th Jan 2024 20:16
Have you tried having a very large font and scaling it down?
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 15th Jan 2024 09:29 Edited at: 16th Jan 2024 09:02
HI

I use .ttf font with LoadFont(), so I guess the font size should be ok, whatever the resolution.

Edit : but it's not the case on windows, with rendertoImage, The text is drawn blurred, and I don't how to fixe that.
AGK2 tier1 - http://www.dracaena-studio.com
adambiser
AGK Developer
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: US
Posted: 18th Mar 2024 02:27
Look at SetTextDefaultMagFilter and SetTextDefaultMinFilter. Default is "1=linear" which can look blurry. Try using 0 (nearest) instead.

Login to post a reply

Server time is: 2024-04-27 12:31:00
Your offset time is: 2024-04-27 12:31:00