I am using Alloy and have an issue with vanishing symbols of a font. I have packaged a symbol that has several segments as a TTF font. The reason of not using a SVG is that I want to be able to dynamically change the colors. The full logo is shown for “0”, each single segment is mapped from 1-8.
So far it works, but when I make the font big so that it can surround the content, some segments are vanishing. Does somebody have an idea why this is happening?
In the picture you can see the issue: I have rendered the “0” (=full symbol) with white in the background. On top are the segments, each colored differently. For the white segments, the single segment is rendered. When I reduce font size, the non-rendered segments will appear again. They are also perfectly in place.
When I reduce the font size to 320 instead of 325, all segments are shown. Even if I move the vanishing segments to the right they still are shown, so I guess it is not outside of the drawing area.
Good to know that it is possible to change the color in C, so maybe I migrate the project. I guess it should also help regarding compatibility anyway!
I’d suggest subwitting a bug report somewhere. Moddable is the company that handles Alloy, I don’t know if they have a separate repo or something. I can’t find anything on it. But maybe it’d be sufficient to submit an issue on the Core Devices PebbleOS repo
After a very nice exchange with the developer, both of the issues have been adressed: Characters of big TTF fonts are not vanishing anymore on the one side, on the other side, SVG/PDC drawing got an extended API that allows changing colors and visibility of segments, which can be addressed by the colors of the segments as shown here