PDA

View Full Version : How to set clan::Font from clan::Sprite without xml



EgorTiunov
01-15-2016, 08:13 PM
Hi all.

Please explain how to build a clan::Font from clan::Sprite without xml. Is there such a possibility?

rombust
01-18-2016, 10:25 AM
Looking at https://github.com/sphair/ClanLib/blob/master/Sources/API/Display/Font/font.h#L90


Font(Canvas &canvas, const std::string &typeface_name, Sprite &sprite, const std::string &glyph_list, float spacelen, bool monospace, const FontMetrics &metrics);

You can build the sprite without xml

EgorTiunov
01-19-2016, 06:33 PM
Thank you
a long time not used vs ))