#Filled Font Shader?

1 messages · Page 1 of 1 (latest)

hoary ridge
#

Hello, Is there anyone how to achieve the second image?

I want to have the text font filled with white color

fossil pumice
hoary ridge
#

iam

#

is there a setting for this?

fossil pumice
hoary ridge
fossil pumice
hoary ridge
#

thats how all font works

#

font cannot contain color

#

thats why Im asking if there is a way how to do this with hlsl instead

fossil pumice
hoary ridge
fossil pumice
#

this is how it looks like for me

hoary ridge
#

font ttf cannot contain color

fossil pumice
#

the ttf can't

hoary ridge
#

you apply the color on the software

fossil pumice
#

but why not just have an outline?

hoary ridge
#

while in my case I was applying black & white color

#

the font design doesnt have a fill by default

fossil pumice
#

But if it did you could have the outline as an actual outline

#

you could also have a second font that's just the inside

#

and have 2 text in front of eachother

#

but there's no way to fill stuff in that's not there

#

TMPro generates an SDF from your font

#

that tells the shader how far is a pixel from the line

hoary ridge
hoary ridge
fossil pumice
#

yes, you can also copy tmpro's shader and add an extra texture

#

but that's a lot of work

hoary ridge
#

thats just some stupid workaround

#

not very scalable

fossil pumice
#

by copying the shader I mean the hlsl

#

sample a secondary texture

hoary ridge
#

that could work.

Forgot to mention, so I'm going to restructure the glyph instead, from the font sprite sheet atlas

hoary ridge
#

just did a dirty workaround

#
  1. Took a screenshot from base atlas
#

Took screen shot from that, & the screenshot must match 512x512

#

Edit the screenshot in graphic editor

#

replace the atlas in text mesh pro

#

But yet here we are