2025-05-06 12:33 PM
I am currently making an artificial horizon for a project in TouchGFX, but I just noticed that when I tried to use the svg of the Pitch_Angle_Indicator that has numbers I get a compile error. Are there any plans to implement the usage of numbers in svg images?
BS
Neyus
Solved! Go to Solution.
2025-05-07 6:56 AM
@Neyus wrote:Hello @unsigned_char_array
Unfortunately, I need to rotate and move the scale in reference to the pitch and roll angle of the sensor.
There are many solutions to that. You can use texture mapper, which allows you to rotate bitmap images.
If you want to keep using an SVG there is another solution. You can convert the text in the SVG image to vectors. In inkscape you can select the text and click Path->Object to Path.
I've tested it with an SVG image with text. It works with TouchGFX. You do need to remove some unsupported pieces from the SVG with a text editor, but then it works.
2025-05-07 2:23 AM
Hello @Neyus ,
It's not supported, you can refer to SVG | TouchGFX Documentation , and we have no plan into supporting it at the moment.
BR,
2025-05-07 2:59 AM
You can add the text on top of the SVG image or you can convert the SVG image to a PNG.
2025-05-07 4:55 AM
Hello @unsigned_char_array
Unfortunately, I need to rotate and move the scale in reference to the pitch and roll angle of the sensor.
2025-05-07 6:56 AM
@Neyus wrote:Hello @unsigned_char_array
Unfortunately, I need to rotate and move the scale in reference to the pitch and roll angle of the sensor.
There are many solutions to that. You can use texture mapper, which allows you to rotate bitmap images.
If you want to keep using an SVG there is another solution. You can convert the text in the SVG image to vectors. In inkscape you can select the text and click Path->Object to Path.
I've tested it with an SVG image with text. It works with TouchGFX. You do need to remove some unsupported pieces from the SVG with a text editor, but then it works.
2025-05-07 10:15 AM
Hello @unsigned_char_array
Thank you very much, that fixed all my problems!
2025-05-07 1:27 PM
What solution did you try? Texture mapper or converting the text in the SVG to vectors?
2025-05-07 1:45 PM
I converted the numbers to vectors and then removed the trouble causing svg settings via a code editor.
2025-05-08 1:39 AM - edited 2025-05-08 1:40 AM
If you can mark my answer as the solution it can help others with the same issue too as they now see a solution that says it doesn't work, while there is a workaround (you can unmark a solution and select a new one).
I invested time in figuring out a solution, so I hope it can help multiple people.