Hi Gary,
"Gary Chambers" <[EMAIL PROTECTED]> wrote
in message news:[EMAIL PROTECTED]
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-tween.3.mcz
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
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project