[wxMSW] PrivateFontCollection

Chad Wagner chad at chadawagner.com
Tue Sep 25 10:10:50 PDT 2007


On MSW, wxWidgets 2.8.5

I am loading a font from a resource file and adding it to a  
Gdiplus::PrivateFontCollection.  But I'm a little stuck as to how to  
create a wxFont from it.  I can create a Gdiplus::Font from it, but  
for some reason wxFont doesn't find the same font when I give it the  
same family name.

Can anyone offer advice on how to do this?  Is there something else I  
need to do to make the font family available to wxWidgets?  Or is  
there a way I can just create the Gdiplus::Font objects I need and  
wrap them up as wxFonts?

thx,
cw




More information about the wx-users mailing list