You can send large file we just will let them pass. stef On Sep 15, 2008, at 7:51 PM, Andrew Tween wrote:
Hi Gary,
"Gary Chambers" <gazzaguru2@btinternet.com> wrote in message news:82AB7DFBA0D84C53A1D98B941BA44EF3@GuruVista...
Specifically the "Alt-k" (opt for Mac users :-) ) keyboard option for ParagraphEditor... With FreeType and many fonts installed the menu is unmanageable (can't even get to the "more" option)...
If you install the latest version of FreeTypePlus - http://www.squeaksource.com/FreeTypePlus/FreeType-tween.435.mcz then you will see that I have created a basic font picker dialog (screenshot too big to attach without moderator approval).
This uses some of the Polymorph modal dialog code, which I extracted into a separate package, so that it works even if Polymorph is not installed... see - http://www.squeaksource.com/FreeTypePlus/PinesoftEnhancementsForFreetype-twe...
I no longer install all the available fonts as TextStyles - so your existing FontPicker is unlikely to work with the latest FreeTypePlus. I am happy to work with you to get it working again; we will need to discuss what is the best way to do this.
Storing TextStyles in the TextConstants dictionary seemed like an accident waiting to happen. TextConstants contains the carriage return character under key #CR , alongside the Atlanta TextStyle under key #Atlanta . Exactly what would happen if a user's computer happened to contain a font called 'CR' or 'Centered' or 'EndOfRun' is anyone's guess :)
However, not putting all the fonts into TextConstants as TextStyles does mean that some backwards compatibility has been lost.
Cheers, Andy
Perhaps it would be good to extend UIManager with an entry-point for choosing a font, passing off to the Polymorph font selector, in our case.
Method in question: ParagraphEditor>>changeStyle.
Regards, Gary.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project