« Return to Thread: How do you change the current font in ...freetype_int32 and/or font_cache_manager?

How do you change the current font in ...freetype_int32 and/or font_cache_manager?

by Vinnie-4 :: Rate this Message:

Reply to Author | View in Thread


Dear Group:

I've got agg working lovely in my application. I'm using it to draw my entire user interface, including plenty of text in different fonts.

Problem is, I'm creating a separate instance of agg::font_engine_freetype_int32 and agg::font_cache_manager for each face and size combination. This can't be right...can it? When I step into the source code I see something about num_faces and max_faces and an array where it keeps multiple fonts cached, along with a signature that gets updated whenever an attribute that would invalidate the glyph cache is modified.

So apparently there is a bunch of code to let the font manager and cache manager remember multiple fonts, but where is the function to select which is the "current" font for drawing?

Thanks!


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Vector-agg-general mailing list
Vector-agg-general@...
https://lists.sourceforge.net/lists/listinfo/vector-agg-general

 « Return to Thread: How do you change the current font in ...freetype_int32 and/or font_cache_manager?