For the numbers, couldn't we have engine magic to create those large numbers directly as a font with some special effects?
It would allow us to have any text written in a large, decorated fashion.
It would allow us to have any text written in a large, decorated fashion.
Being able to specify the text size would be really cool for the custom GUIs, too (headers etc.).
But the icon numbers would need to work with SetGraphics, so that might make it harder to implement?
But the icon numbers would need to work with SetGraphics, so that might make it harder to implement?
A new graphics type that renders text wouldn't be too hard to do. We already have TYPE_Bitmap, TYPE_Mesh and TYPE_None.
buuut I guess you won't implement it? :)
PS: also, a dynamic font size would be more important for me at least
PS: also, a dynamic font size would be more important for me at least
Having a TYPE_Text object would be rather simple. The problematic part is having proper font management because that would need some refactoring on CStdFont. Mostly, different font sizes would have to be managed internally and CStdFont would just become a frontend class that contains the font size and possibly settings, but might map to different internal fonts depending on the zoom.
There's also the question what happens if a font is allowed to zoom freely. That would potentially create a lot of font surfaces.
Concerning TYPE_Font: We could also implement TYPE_Line on that occasion since lines also have special drawing code.
There's also the question what happens if a font is allowed to zoom freely. That would potentially create a lot of font surfaces.
Concerning TYPE_Font: We could also implement TYPE_Line on that occasion since lines also have special drawing code.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill