It would be nice if we would have the ability to set a font (the Font class) as the default font for the entire application (through some LookAndFeel class method, I guess). Thus, it would be possible to set even an embedded font as the global font for an application.
So, it would be great if we could set a mouse cursor image (the MouseCursor class) as the global mouse cursor image for the entire application.
It would be nice if we would have the ability to set a font (the Font class) as the default font for the entire application (through some LookAndFeel class method, I guess). Thus, it would be possible to set even an embedded font as the global font for an application.
Happy new year! :)[/quote]
I second the idea! Although I’ve looked into using embedded default font and it is not so trivial - would require quite a tweak in the font class.
The method takes a name of a font as a string, but I’m talking about the Font class instance instead of a string. In your case, how am I supposed to set the default font if it’s stored (embedded) in my resources in the binary format produced with “Typeface::serialize”?
I’m talking of this: Font::setDefaultSansSerifFont(const Font &defaultFont)
This way, any application can use embedded fonts to look pixel-to-pixel familiar to its users no matter what OSes they use. Moreover, embedding Unicode fonts guarantees support for language specific strings that can be absent at some OS’s font repository.