Hey it's really good!
Great job! :D
It works, thank you! I was worried if it would still work on wavy text but it's fine.
Edge case : Anchoring it at Middle Center causes a weird thing. Every other line moves up and down trying to adjust offsets on every rebuild.
This is how it looks inside the editor when selected:
Rect transform is anchored at top left, integer positions, width 521, height 73 - constantly changes to 74,73,74,....
Inside the Super Text Mesh component the text is Anchored at Middle Center, and it's Centered. A quick fix I've found is setting the Base Offset y to 0.1, then Rect transform height changes to 72.9999 and the dancing stops.
Or just setting the Rect transform to also be Centered.
Oh wow! Yeah that almost solves the problem, it's not perfect because it only works on the first line. Other lines still have positions like 198.5. Tried rounding every vert[i] - that's a mess, but made me think if I could apply different offsets for different lines that would fix everything. But I'm not sure how I'd get the first position of a new line.
Thank you for the quick response and possible solutions!
I've tried everything at this point. Battling with this for the second day...
I forgot to mention I'm using a canvas in World Space, so I must scale down either the font or the canvas. Scaling down the canvas works best. I've noticed Dynamic Pixels per Unit don't do anything, so just canvas.scaleX= scaleY=0.01 with huge canvas width and height.
The best setup I've found is:
*size = quality =19 (for my font 1st Sortie)
* .tff font size 500, Hinted Smooth
* filter mode Point
*using that Pixel Snap shader
I've pinpointed the problem. Horizontal alignment. I can't Center or Justify text or it gets blurry. Image below.
I should add that I don't use floating point at any values, line spacing = 1 etc. Object position, width and all other variables are integers.
I can now use small fonts, so I'm happy for that, Super Text Mesh is a really cool and helpful asset, but it's a shame I can't center the text. :(
I have a problem! I'm using UI Super Text Mesh on a canvas with a normal .ttf font, everything's okay for bigger sizes but for small sizes like 18-36 px it gets really blurry sometimes. I've been playing with different settings for 8 hours today and I'm getting a bit desperate. I tried bitmap fonts etc, and the best solution was to use just the .ttf font ,set it to size 500, Hinted Smoothing, Quality = 21, Size = 0.21, but still there are moments when text changes and it decides to get blurry.
I think it's because characters can move in sub-pixels, so every other line gets blurry and sometimes one line accepts 8 characters and is sharp, but with 9 characters it gets blurry... It's really noticeable when changing alignment, it's always blurry when Centered.
I'm currently making a 2D game where small bubbles appear above characters, so I can't really increase the font size :(
Can you help me somehow?
Thank you so much! :D I'm so happy you managed to finish the game at all, I was worried it was too difficult! :o
And thank you for the other message, I got it, it really cheered me up :)
PS. great thumbnail :D
Hey man! Love the art style here! I'll say something that probably nobody has said before and what is the main reason this game is fun - good graphic design.
Violent game, dominantly red, supporting colour black associated with negative emotions. It's a really nice touch to combine to make the graphic theme match the game theme and one that many game makers never think about. Good job!
Why no web version tho?