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.

AppGameKit Classic Chat / Blury text with small font

Author
Message
xtremi
6
Years of Service
User Offline
Joined: 26th Aug 2018
Location:
Posted: 3rd Apr 2019 14:36 Edited at: 3rd Apr 2019 14:36
If I create a text sprite (with the default font) and set a small font size (in this case font size = 10.0), the text becomes very blurry:


(Here virtual resolution was set to 500x1000)

How do I properly create small texts so that they are clear?
xtremi
6
Years of Service
User Offline
Joined: 26th Aug 2018
Location:
Posted: 3rd Apr 2019 15:26
So this code will demostrate the problem:



But if I don't use:


the text becomes clear even with the zoom.

But if I apply some random font I got with LoadFont and SetTextFont, it gets blurry again. What should I know about fonts to make sure it is clear when I zoom in?
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 3rd Apr 2019 21:58
Cant you turn of filter on the font.
min and mag filter should you be able to turn off any text that you nead if you scale a font down to a small size.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 3rd Apr 2019 22:18
Quote: "Cant you turn of filter on the font.
min and mag filter should you be able to turn off any text that you nead if you scale a font down to a small size."

i have tried SetGenerateMipmaps(), SetDefaultMagFilter() and SetDefaultMinFilter() without success

Login to post a reply

Server time is: 2024-11-23 02:07:57
Your offset time is: 2024-11-23 02:07:57