I am using Pharo 3.0 and I want to experiment with Unicode Fonts;
however, I am running into trouble getting a instance of the font for
use with the selector /font/:. I can use the FreeTypeSelectionWindow to
select the font I want, namely: FreeTypeFont('Cambria Math' 'Regular'
10). I do this by creating an instance of that Dialog and inspecting it.
The inspector is of little use because the Dialog is no modal, i.e., it
does not force a return. I can, however, perform the selection of the
desired font which updates the inspector and then I can open an
inspector on the realFont instance variable. While this tortured trail
lead me to my answer the problem is still not solved. There are three
solutions to my problem, namely: either the selection window can be made
modal or there is a method that will take the parameters, FreeTypeFont,
'Cambria Math', 'Regular' and the pointSize 10, and will return a
instance of the font, or the drawing method of the string accepts those
parameters.
Any help will be greatly appreciated, I hope to gain enough knowledge to
document the proper use of Unicode. I need to understand it so I can
create a math formula equation editor.
Thanks to those that have answered my previous questions.