From: Neil H. <ne...@sc...> - 2001-08-29 07:51:10
|
Kevin Altis: > Are we trying to be CSS-like or have people be able to copy an existing > CSS font-family description and use it in PythonCard? I don't mind too much. I just want to be able to specify a font list in a reasonable way without writing a lot of UI. > The original > { font-family: "New Century Schoolbook", Times, serif } Damn. I wrote my code from a book that got it wrong, not mentioning the comma delimiter. Attached is a fixed version. It looks to be compliant with http://www.w3.org/TR/REC-CSS1 although its probably not as forgiving as real world browsers are. > what I tested... > > Test('"New Century Schoolbook", Times, serif') > > produces > > <"New Century Schoolboo", Times, serif> > ['New Century Schoolboo', ',', 'Times,', 'serif'] I doubt that ;) The 'k' shouldn't disappear between being an argument and being printed the first time. Neil |