pharo-graphics / Bloc

Low-level UI infrastructure & framework for Pharo
MIT License
83 stars 40 forks source link

How to manage different font names like CSS ? #222

Open labordep opened 1 year ago

labordep commented 1 year ago

Hi, is it possible to manage font name like CSS ?

For example :

ropedText := '' asRopedText.
ropedText defaultFontName: #('SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', 'Courier', 'monospace').

This function is to select the good (and installed) font depending of the target system. We should send a collection with different font name, and Bloc can automatically select the first supported font.

We need this function for Toplo :)

tinchodias commented 1 year ago

I opened similar issue at number #185 Options include: