I finally went and upgraded my code to brand new everything -- latest
wxWidgets, latest Python, latest wxArt2D, and after working through
all the incompatibilities and getting recompiled properly, I'm left
with one thing.

In my code I used to create fonts doing something like
    font = new a2dFontDC(8.0, wxSWISS, wxNORMAL, wxBOLD);
then when drawing with the aggdrawer it would convert that to a
FreeType font for me under the hood.  That feature seems to have been
commented out with an #ifdef that's off by default.

First of all why did you disable that by default?  it was pretty handy.

Second, without that it's hard to create a "default" font in a
platform independent way.  a2dFontFreetype doesn't have a constructor
that takes those same parameters.  I ended up doing what the samples
seem to do and just hard-coding an "Arial.ttf", but that's a terrible
solution.  I think the FontDC->FontFreetype conversion under the hood
should either be reinstated as the default, or FontFreetype needs to
be given some better constructors.

Regards,
--bb

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to