Not logged inOpenClonk Forum
Up Topic Development / Developer's Corner / Text as DefGrahics type
- - Date 2015-03-25 20:06
Parent - - By Sven2 Date 2015-03-24 17:24
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.
Parent - - By Zapper [de] Date 2015-03-24 19:05
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?
Parent - - By Sven2 Date 2015-03-24 19:26
A new graphics type that renders text wouldn't be too hard to do. We already have TYPE_Bitmap, TYPE_Mesh and TYPE_None.
Parent - - By Zapper [de] Date 2015-03-24 20:46
buuut I guess you won't implement it? :)

PS: also, a dynamic font size would be more important for me at least
Parent - By Sven2 Date 2015-03-24 21:35
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.
Parent - By Newton [tr] Date 2015-03-25 20:06
This discussion does not belong here. Could you please move this?
Up Topic Development / Developer's Corner / Text as DefGrahics type

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill