From: Brian M. <mrb...@gm...> - 2006-05-10 06:10:39
|
In the Font dialog the sample of the font will display with overstrike and underline, so it is clear if a font supports those characteristics. The Font dialog settings are not all being saved by pythoncard methods. The pythoncard/dialog.py FontDialog method has the code "result.fontDescription =3D fontDescription(fontWx)" and this result is returned by FontDialog, however the fontDescription method of pythoncard/font.py which sets the returned dictionary uses only a few of the font.Getxxxx methods and it does not do a font.GetUnderlined So, fontDescription fails to retrieve all of the font properties which may be set in the Font dialog. The on_wFont_mouseClick method in propertyEditor.py which called the font dialog doesn't extract many of the font properties anyway. These two methods would need to be hacked or fixed to reserve the underline/overstrike settings (and more?) from the Font dialog On 5/9/06, Schollnick, Benjamin <Ben...@xe...> wrote: > Is it possible the font itself doesn't support underlining? > Have you tried using a different font? > > - Ben > > > -----Original Message----- > > From: pyt...@li... > > [mailto:pyt...@li...] On > > Behalf Of Ray Allen > > Sent: Tuesday, May 09, 2006 1:10 PM > > To: pyt...@li... > > Subject: [Pythoncard-users] font underline > > > > > > PythonCard resource editor doesn't seem to apply the > > underline font effect > > when checked. I've tried adding various options to the resource file > > manually ('text-decoration':'underline') and others to get > > this working but > > to no avail. This is on Windows. Any advice appreciated. > > Ray Allen > > > > > > > > ------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web > > services, security? Get stuff done quickly with > > pre-integrated technology to make your job easier Download > > IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642 > _______________________________________________ > Pythoncard-users mailing list Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job ea= sier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |