How to use Console as an encoding font

I would like to change the font for the version of the code in the Squeak 4.3 image on the Windows OS to use the consolas font whenever possible.

I did not find anything in the settings browser to make this easy. This SO question was perfect, but none of the answers work in my case.

For example, in the line

font := LogicalFont familyName: 'Bitmap DejaVu Sans' pointSize: 10. 

LogicalFont : I get a popup that allows me to fix the missing class / variable.

Unknown variable: LogicalFont, please correct or cancel: [...]

Is this solution not suitable for Squeak 4.3, or am I missing some kind of package?

EDIT : how often, I find some answer elements after the question has been submitted to SO:

I did not find anything in the settings browser to make this easy.

Since the setting is not available through the settings browser, but through the "World" menu โ†’ Appearance โ†’ System fonts โ†’ code font.

But I see only a few available fonts (next to ComicSans and BitstreamVera), but not the Console. I have the Offer native fonts privilege, though ...

Second Edit : given Igor Stasenkoโ€™s answer, I found on SqueakSource the mention of FreeTypePlus , which seems the most recent (itโ€™s not so easy for a beginner to learn how to install new software on Squeak, it also seems that Squeak has slowed down since 2006/2007, and some points mentioned in Swiki are now omitted ...)

So I added in Monticello

 MCHttpRepository location: 'http://www.squeaksource.com/FreeTypePlus' user: '' password: '' 

And install FreeType , FreeTypeSubPixelAntiAliasing and PinesoftEnhancementsForFreetype . Now I see my ttf system fonts ...

+4
source share
1 answer

AFAIK, Squeak does not include Freetype support by default.

You can try Pharo, where Freetype is enabled by default. http://www.pharo-project.org/home

Or you can try installing the Freetype package in Squeak and downloading the freetype plugin for VM.

+2
source

Source: https://habr.com/ru/post/1439105/


All Articles