You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why the generated font have a black color by default? :(
The text was updated successfully, but these errors were encountered:
scraly
changed the title
Font converted with tinyfontgen-ttf can't be displayed in a different color than black
Font converted with tinyfontgen-ttf can't be displayed in a wanted color
Dec 7, 2024
When using TTF fonts around the size of 12pt, the lack of anti-aliasing reduces font readability.
Therefore, the current implementation uses 2-bit color.
The current version assumes a white background and black text color.
This can likely be improved by implementing alpha blending to handle the rendering.
So a workaround can be to be able to personalized these color during the generation. No?
Yes, as you said, allowing all 4 colors to be customized would make it display properly.
This approach is much simpler than implementing alpha blending, so it might be a good first step.
Hi,
I have a strange bahavior right now.
I converted several size of TomThumb font (because the original one stored in this repository is too tiny).
Conversion:
And when I'm using it in a main.go file, it seems that I can't display the font in a different color than a mix of white and black:
Even if I change the color to green or red or what you want, the result is always the same:
Result:
Here the code of the generated font:
Why the generated font have a black color by default? :(
The text was updated successfully, but these errors were encountered: