It would be nice if rendering.draw_text supported rich text.
Support rich text in rendering.draw_text
-
- Inserter
- Posts: 23
- Joined: Tue Sep 25, 2018 9:32 pm
- Contact:
Re: Support rich text in rendering.draw_text
I can't easily scale, rotate, and calculate the size of rich text, so this is unlikely to happen. You could just draw the sprites yourself.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Support rich text in rendering.draw_text
In addition to what Bilka said I have negative interest in making rich-text work anywhere in the game.
If I was allowed I would remove the entire feature.
So, I'm going to move this to won't-implement until some point that we either remove rich text from the game or Bilka decides to implement support for it.
So, probably forever.
If I was allowed I would remove the entire feature.
So, I'm going to move this to won't-implement until some point that we either remove rich text from the game or Bilka decides to implement support for it.
So, probably forever.
If you want to get ahold of me I'm almost always on Discord.
Re: Support rich text in rendering.draw_text
Implemented for 1.1.77
Re: Support rich text in rendering.draw_text
There sure must be an interesting story behind this
I appreciate the rich text feature for that i have friends who don't play in english and it help reduce confusion about naming things.
I have no idea what kind of complications it creates to manage such feature.
I appreciate the rich text feature for that i have friends who don't play in english and it help reduce confusion about naming things.
I have no idea what kind of complications it creates to manage such feature.
Re: Support rich text in rendering.draw_text
An interesting story? Well, Bilka asked me to implement it a few weeks ago because of some changes I made in 1.2 branch, and BurninSun actually pushed me to do it with how determined he was to make a rich text parser in Lua.
At first, it seemed like I would have to cut features like scaling and alignment because I didn't want to spend much time on this but it turned out not as bad. The most difficult thing (orientation) had already been implemented. So, I added features + tests step by step and JanSharp helped me with in-game testing.
However, Rseding's point is still valid. Rich text rendering is not optimized.
At first, it seemed like I would have to cut features like scaling and alignment because I didn't want to spend much time on this but it turned out not as bad. The most difficult thing (orientation) had already been implemented. So, I added features + tests step by step and JanSharp helped me with in-game testing.
However, Rseding's point is still valid. Rich text rendering is not optimized.