From: Lyndon Samson Date: 2005-10-05T09:09:56+09:00 Subject: Re: Interest in Boost::Ruby ------=_Part_16541_31445431.1128470993058 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > The CSS renderer is going to work with GUI primitives. > > I'm going to develop the objects, Font, Pen, Brush, Surface, for > each OS X, Gtk, and Win32 GDI. These will be written in intially > in baby-talk C++ and made avialable as Ruby classes. > > Then I'll use Ruby for the rendering. > You could erm, have the concept of a 'Display Virtual Machine' ... You could either parse something into DVM code, or build it directly RenderList rl =3D new RenderList() rl.add(CREATE_FONT) rl.add(new Font("Arial",...)) Your renderer could just interepret DVM instructions. CREATEFONT fontface,pointsize,... CREATE PEN,... TEXT str,x,y a nice side effect would be the ability to do ( using many CPU cycles of course! ) HTML -> XHTML ( via tidy ) -> Text Source DISPLAY VM Instructions ( via XSLT, Ruby etc) I think the old NextStep system had display postcript. TrueType has some sort of VM. -- Into RFID? www.rfidnewsupdate.com Simple, fast, news. ------=_Part_16541_31445431.1128470993058--