Re: python drawGlyph

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

drawGlyph isn't working yet and not only for python. It was kind of a 
collateral damage as a consequence of the tff font inclusion. CVS should work 
again now.

Thanks for reminding me :)
	Klaus 

Am Dienstag 22 Januar 2008 19:25:38 schrieb Gabriel Pendl:
> hi!
> i'm using the python extension of the latest cvs snapshot.
>
> i'm trying to draw a glyph with this codelines:
>
>
> -----------
> from ming import *
>
> s = SWFShape()
> s.setLine(40, 0x7f, 0, 0)
> s.setRightFill(s.addFill(0xff, 0, 0))
>
>
>
>
>
> font = SWFFont("He.fdb")
>
> s.movePenTo(20, 20)
>
> s.drawGlyph(font, "a")
>
> m = SWFMovie()
> m.setDimension(640, 480)
> m.setRate(12.0)
> m.add(s)
> m.nextFrame()
> m.save("glyph02.swf")
> --------------
>
> but obviously nothing happens. the file seems to be empty because there is
> only a blank white screen when i'm opening the swf file.
>
> is the drawGlyph method not longer supported in ming0.4 or am i doing
> something wrong?
>
> thanks for your help!
>
> kind regards gabriel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ming-users mailing list
Ming-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ming-users

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux