Jump to content

Font Rendering


SpiderPig
 Share

Go to solution Solved by Josh,

Recommended Posts

I'm not using the default widget system here, I've made my own and rasterize my fonts to a texture.  In this screenshot you can clearly see the problem I have.  I added a background shader to the font shader.  The text only looks good when on dark backgrounds.  You can see the right side is much nicer than the left side.

BadFontRendering.thumb.png.af7f28d399791312ca12f943351cc414.png

Here's my inventory.

BadFont_002.png.c0aee2cf589781cc1c0974b4f8234457.png

I'm unsure if this is a font shader issue - a rasterization issue - or simply I need better font colours depending on the background color.  Thought I'd ask to see if any one here might have any tips. :)

Link to comment
Share on other sites

  • Solution

Use TEXTUREFILTER_NEAREST for the filtering argument when you create the texture. Otherwise, if your texcoords aren't 100% perfect it will blur the text.

  • Thanks 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...