Unicode + SuperUltraAllNewGetItNow Python Upgrade questions: ASP/VBScript->Python
Jason Cunliffe
jasonic at nomadicsltd.com
Wed Sep 6 21:34:26 EDT 2000
Well [doh] answering my own 'easy' question first:
> Q3. This has to be very easy...
> What can I enter as hardcode or via a little dictionary which will return
> the correct values for AscW("B"), AscW("I"), AscW(" ") as above?
> There are only a few options when it comes to setting th font.. where can
I
> find out what these strings are ?
I made a tiny tool in VB which calls AscW("B"), AscW("I"), AscW(" ") and
displays '66', '73', '32'
This way I could get the values I needed.
Then in my Python code:
bkfontstyle = {'normal':'32','bold':'66','italic':'73', " ":"32", "B":"66",
"I":"73"}
bukfont = win32com.client.Dispatch("swfobjs.swfObject")
bukfont.MakeFont("MyFont")
bukfont.AddGlyph("Arial", "pyBukoo", bkfontstyle['bold'])
bukfont.AddGlyph( "Arial", "pySWF ", bkfontstyle['normal'])
bukfont.AddGlyph("Arial", "and pyFlash are coming soon",
bkfontstyle['italic'])
etc..
- Jason
More information about the Python-list
mailing list