|
From: Klaus R. <kl...@re...> - 2007-11-09 15:54:48
|
Hi Thomas,
> I had to "chmod +x config/install-sh"
Fixed that. configure takes care now.
> and in the py_ext/setup.py I had to add '/sw/lib' and 'ungif':
>
> library_dirs=['../src/.libs','/sw/lib','/usr/local/lib/'],
> libraries=['ming','z', 'png','ungif'])])
Also added 'ungif' to libraries. Someone might fix setup.py.in to add the
libraries only if they are enabled in src/ming_config.h
> Most of the functions I need seem to work well, except for drawing text.
> I tried to fix the error message
>
> File "/Users/tanner/python/ming.py", line 482, in setFont
> self.__fonts[font.this]=font
> TypeError: unhashable type
Fixed that also.
> from ming import *
> Ming_setScale(1.0)
> m = SWFMovie()
> m.setDimension(6400, 4800)
> font = SWFFont("_sans")
^^^^^^^^^^^^^^
please use SWFBrowserFont("_sans") for non-filebased fonts. You need to
update to CVS HEAD first!
in contrast
SWFFont() takes a filename of ttf/fdb fontfiles.
> text = SWFText()
> text.setFont(font)
> text.setColor(0,0,0)
> text.setHeight(16) <-
Btw: together with Ming_setScale(1.0) your font is 16/20 pixel big...
Default scale is 20.0 which means 20 TWIPS correspond to 1 px.
Thanks for your help improving ming!
Klaus
|