#Tmp dynamic font
1 messages · Page 1 of 1 (latest)
Id try updating tmp to a later beta version first but Id presume a font made at runtime was always dynamic.
I see, how come it doesn't support characters then?
also, sorry for the late response, was eating
ah, well this is quite interesting tbh, it appears to be working in the unity editor but not in the build o_0
I should mention that I am on linux, could that have something to do with it?
these are my tmp settings that seem related to this
Should work regardless to my knowledge but having it work somewhere is good. If you disable "clear dynamic data on build" the characters remain in the texture so could help
oh wow 🤦♂️
it wasn't tmp in the first place, it indeed generated things properly, it's my shell command execution
I just pasted ° directly as text and it worked
welp, ig I gotta figure that one out now
oh, another thing, you seem to have a bit of experience w tmp, would you happen to know if it's possible to make the font monospaced?
terminals support that out of the box(and font that I use is ms), but idk how to do it w tmp
I've seen the <mspace> tag but that'd be different for each font so I was wondering if it's possible to automate it if font is ms
Also, managed to fix the issue by adding these 2 lines to my shell execution script:
StandardOutputEncoding = System.Text.Encoding.UTF8,
StandardErrorEncoding = System.Text.Encoding.UTF8
Thanks once again for your help!
Try this. make sure rich text is enabled for the tmp component too.
https://docs.unity3d.com/Packages/com.unity.textmeshpro@4.0/manual/RichTextMonospace.html
you can specify the spacing in the tag which may help it be better? (derp read your msg again better now so you probably tried it already)
yeah, it does work but it's annoying that you have to specify the size manually
let me show you an example
This is an extreme example so you can see why monospaced can be important in some cases...
And as I am writing this, I just realized that when I made the shell output use UTF8 actually fixed this issue too because the font itself is monospaced and tmp handles that correctly 🤦♂️
welp, thanks a lot for your help, who knows how much time I would've wasted otherwise
yay unicode for the win
this looks super cool, is it some desktop bg thing?
yeah, a music visualizer background sort of
but it doesn't set itself to the background layer automatically, I have no clue how I'd do that tbh
I use hyprland's hyprwinwrap and lively on windows
oh right, one more thing before I forget(sorry for spamming at this point), you mentioned something about tmp already supporting system fonts by default, any chance that's actually the case or did you confuse it with old font system?