#Tmp dynamic font

1 messages · Page 1 of 1 (latest)

robust hare
#

Id try updating tmp to a later beta version first but Id presume a font made at runtime was always dynamic.

thorny palm
#

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?

thorny palm
#

these are my tmp settings that seem related to this

robust hare
#

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

thorny palm
#

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!

robust hare
#

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)

thorny palm
#

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

robust hare
#

yay unicode for the win
this looks super cool, is it some desktop bg thing?

thorny palm
#

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?

robust hare
#

think i was thinking of the old text stuff dang 😦

#

you could always try to grab and create it at runtime but may be a pain to then use as you cant easily modify the global fallback font list out of the editor

thorny palm
#

guess I'll just have to implement windows support too, shouldn't be too bad since it's always the same(Resource/fonts or sm like that iirc)

#

thanks either way