[squeak-dev] [Newbies] What font do you use in macOS ?

Nicola Mingotti nmingotti at gmail.com
Sun Dec 8 07:26:19 UTC 2019


Evviva, habemus improvement in font ! 

What I tried is this:

0] Some tiny tweaks on @Tobias code.

1] Add new sizes to DejaVu Sans 
=> Failure. See attachment in next mail (must be < 2M limit)

2] Add font Roboto, size 11 works and it fits my eyes, it is quite nice to see as well. 
=> Working, see attachment 1.

3] Add font RobotoMono, size 9 works and it fits my eyes, it is not nice to see as Roboto but readability is wunderbar IMO.
=> Working, see attachment 2.

====== Extra considerations ======

E1] It took me all the afternoon to get some result. I could not make it if I did not know Python already and I hadn't a decent number of hours wrangling with Squeak under my belt. => Not for beginners. 

E2] This procedure is just for Mac. I agree with @Christoph, there should be a better way. I can try to pack Roboto and RobotoMono in a SqueakMap package, I never did one, but it seems a good occasion to try it out. I like SqueakMap, installing stuff is as easy as it should be:)

E3] Can you tell me why I can't generate all the sizes I wish? Where does the limitation come from? For RobotoMono I see some garbage in certain sizes eg: {12,10,7}. But these sizes exist in GoogleDocuments for the same font. 

E4] @Tim, either you know already well the font subject and you know where to start to touch in Squeak or it will be a problem. Before @Tobias code I was miserably stuck. No reference anywhere. In the venerable Blue and Purple book there is nothing about fonts (or I can't find it), not even in Guzdial books. There is a (master thesis?) from HPI, here: 
https://publishup.uni-potsdam.de/opus4-ubp/frontdoor/deliver/index/docId/42748/file/tbhpi128.pdf <https://publishup.uni-potsdam.de/opus4-ubp/frontdoor/deliver/index/docId/42748/file/tbhpi128.pdf>
I red a little part of it, it is good for background info, but it does not enter into the deep technical implementation details. 
=> So, this would be very hard to attack for a Squeak newcomer.
 
bye
Nicola





==============








> On Dec 7, 2019, at 11:19 AM, tim Rowledge <tim at rowledge.org> wrote:
> 
> 
> 
>> On 2019-12-07, at 8:12 AM, Tobias Pape <Das.Linux at gmx.de> wrote:
>> 
>> 
>>> On 07.12.2019, at 14:36, Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:
>>> 
>>> It would be great if the Trunk image would contain more sizes of this font by default, perhaps 1 to: 72 by: 1
>>> ...
>> 
>> If only "that" wouldn't take up so much money
> 
> I suspect you intended to type 'memory' here, but perhaps you were indeed concerned about licensing; some fonts are certainly very license/cost encumbered.
>> 
>>> 
>>> Or could you maybe provide a dense set of generated PNGs in the release section of your repo? For all the people who don't have a mac :-)
>> 
>> Err. I am unsure whether the licenses permit that and I have no time to check.
> 
> There are a good number of free outline fonts available. I mentioned one source a week or three ago - fonts.google.com
> 
> Probably the best trick would be to make it easier to locate/load/process/use such fonts in normal usage. We can read TTF files pretty well (not sure if we handle all the skeleton hinting etc) and produce font glyphs at specific sizes. Caching them efficiently shouldn't be beyond the skills of such an impressive bunch of programmers. We could save the glyph data out as image segments in much the same way that we cache local MC files. Waaaaaay back in the last millennium we (as in 'exobox') did that and loading the glyphs for maybe 50 fonts/sizes from image segments took a small fraction of a second on the cheapest x86 machines of the era. Even waaaaay-er (is that word? It is now) back in time Acorn did a related thing for high quality fonts for RISC OS; render the glyphs as needed on a per-character basis, and render them separately for sub-pixle positioning. We could easily manage quarter-pixel positioning that way - remember, the Acorn machines had at max 4mb ram. we have code in the image already to do sub-pixle rendering, or at least the preferences to select it!
> 
> 
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Artificial Intelligence:  Making computers behave like they do in the movies.
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191207/67d38412/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Squeak-Roboto-11.png
Type: image/png
Size: 565118 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191207/67d38412/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Squeak-Roboto-Mono-9.png
Type: image/png
Size: 728701 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191207/67d38412/attachment-0003.png>


More information about the Squeak-dev mailing list