pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

The ideal font for Pharo

T
tau
Wed, Aug 25, 2021 11:17 PM

I've been bothered by the assignement operator (:=) and the way the colon and the equal sign aren't verticaly aligned when coding in Pharo. So I began a quest to find a pharo-friendly font were the colon and equal sign are aligned. Turn out most monospaced fonts don't qualify but I did find the following fonts:

So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.

I've been bothered by the assignement operator (:=) and the way the colon and the equal sign aren't verticaly aligned when coding in Pharo. So I began a quest to find a pharo-friendly font were the colon and equal sign are aligned. Turn out most monospaced fonts don't qualify but I did find the following fonts: * Fira Code (https://fontlibrary.org/en/font/fira-code) has a := ligature that doesn't work in Pharo. * Iosevka extended (https://fontlibrary.org/en/font/iosevka-extended) also has a := ligature that doen't work in Pharo. * Mononoki (https://fontlibrary.org/en/font/mononoki) has the two characters properly aligned but I dislike the appareance of that font. The @, in particular, looks like it comes from a low-resolution terminal from the early '80s. * Fantasque Sans Mono (https://fontlibrary.org/en/font/fantasque-sans-mono) has perfectly aligned colon and equal sign and moreover has a nice informal look. So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.
GP
Guillermo Polito
Mon, Aug 30, 2021 7:59 AM

Hi tau,

Thanks for it, I’ll check it :)

El 26 ago 2021, a las 1:17, tau tau@cedalion.info escribió:

I've been bothered by the assignement operator (:=) and the way the colon and the equal sign aren't verticaly aligned when coding in Pharo. So I began a quest to find a pharo-friendly font were the colon and equal sign are aligned. Turn out most monospaced fonts don't qualify but I did find the following fonts:

Fira Code (https://fontlibrary.org/en/font/fira-code https://fontlibrary.org/en/font/fira-code) has a := ligature that doesn't work in Pharo.
Iosevka extended (https://fontlibrary.org/en/font/iosevka-extended https://fontlibrary.org/en/font/iosevka-extended) also has a := ligature that doen't work in Pharo.
Mononoki (https://fontlibrary.org/en/font/mononoki https://fontlibrary.org/en/font/mononoki) has the two characters properly aligned but I dislike the appareance of that font. The @, in particular, looks like it comes from a low-resolution terminal from the early '80s.
Fantasque Sans Mono (https://fontlibrary.org/en/font/fantasque-sans-mono https://fontlibrary.org/en/font/fantasque-sans-mono) has perfectly aligned colon and equal sign and moreover has a nice informal look.

So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.

Hi tau, Thanks for it, I’ll check it :) > El 26 ago 2021, a las 1:17, tau <tau@cedalion.info> escribió: > > I've been bothered by the assignement operator (:=) and the way the colon and the equal sign aren't verticaly aligned when coding in Pharo. So I began a quest to find a pharo-friendly font were the colon and equal sign are aligned. Turn out most monospaced fonts don't qualify but I did find the following fonts: > > Fira Code (https://fontlibrary.org/en/font/fira-code <https://fontlibrary.org/en/font/fira-code>) has a := ligature that doesn't work in Pharo. > Iosevka extended (https://fontlibrary.org/en/font/iosevka-extended <https://fontlibrary.org/en/font/iosevka-extended>) also has a := ligature that doen't work in Pharo. > Mononoki (https://fontlibrary.org/en/font/mononoki <https://fontlibrary.org/en/font/mononoki>) has the two characters properly aligned but I dislike the appareance of that font. The @, in particular, looks like it comes from a low-resolution terminal from the early '80s. > Fantasque Sans Mono (https://fontlibrary.org/en/font/fantasque-sans-mono <https://fontlibrary.org/en/font/fantasque-sans-mono>) has perfectly aligned colon and equal sign and moreover has a nice informal look. > > So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.
OV
Offray Vladimir Luna Cárdenas
Mon, Sep 6, 2021 6:56 PM

Now that we're talking of fonts. I wonder how difficult would be to
support emojis on Pharo and if that could be solved at the font level.
They have become part of day to day conversation and would be really
good to show them in things like sentiment analysis.

Cheers,

Offray

On 30/08/21 2:59 a. m., Guillermo Polito wrote:

Hi tau,

Thanks for it, I’ll check it :)

El 26 ago 2021, a las 1:17, tau <tau@cedalion.info
mailto:tau@cedalion.info> escribió:

I've been bothered by the assignement operator (:=) and the way the
colon and the equal sign aren't verticaly aligned when coding in
Pharo. So I began a quest to find a pharo-friendly font were the
colon and equal sign are aligned. Turn out most monospaced fonts
don't qualify but I did find the following fonts:

So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.

Now that we're talking of fonts. I wonder how difficult would be to support emojis on Pharo and if that could be solved at the font level. They have become part of day to day conversation and would be really good to show them in things like sentiment analysis. Cheers, Offray On 30/08/21 2:59 a. m., Guillermo Polito wrote: > Hi tau, > > Thanks for it, I’ll check it :) > >> El 26 ago 2021, a las 1:17, tau <tau@cedalion.info >> <mailto:tau@cedalion.info>> escribió: >> >> I've been bothered by the assignement operator (:=) and the way the >> colon and the equal sign aren't verticaly aligned when coding in >> Pharo. So I began a quest to find a pharo-friendly font were the >> colon and equal sign are aligned. Turn out most monospaced fonts >> don't qualify but I did find the following fonts: >> >> * Fira Code (https://fontlibrary.org/en/font/fira-code >> <https://fontlibrary.org/en/font/fira-code>) has a := ligature >> that doesn't work in Pharo. >> >> * Iosevka extended >> (https://fontlibrary.org/en/font/iosevka-extended >> <https://fontlibrary.org/en/font/iosevka-extended>) also has a := >> ligature that doen't work in Pharo. >> >> * Mononoki (https://fontlibrary.org/en/font/mononoki >> <https://fontlibrary.org/en/font/mononoki>) has the two >> characters properly aligned but I dislike the appareance of that >> font. The @, in particular, looks like it comes from a >> low-resolution terminal from the early '80s. >> >> * Fantasque Sans Mono >> (https://fontlibrary.org/en/font/fantasque-sans-mono >> <https://fontlibrary.org/en/font/fantasque-sans-mono>) has >> perfectly aligned colon and equal sign and moreover has a nice >> informal look. >> >> >> So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃. >
TM
Tim Mackinnon
Mon, Sep 6, 2021 7:31 PM

And is an emoji a binary or keyword element?

Which could hilite some interesting programming usage if it would work?

^self 😎

Or

^a 🙏 b

On 6 Sep 2021, at 19:53, Offray Vladimir Luna Cárdenas offray.luna@mutabit.com wrote:


Now that we're talking of fonts. I wonder how difficult would be to support emojis on Pharo and if that could be solved at the font level. They have become part of day to day conversation and would be really good to show them in things like sentiment analysis.

Cheers,

Offray

On 30/08/21 2:59 a. m., Guillermo Polito wrote:

Hi tau,

Thanks for it, I’ll check it :)

El 26 ago 2021, a las 1:17, tau tau@cedalion.info escribió:

I've been bothered by the assignement operator (:=) and the way the colon and the equal sign aren't verticaly aligned when coding in Pharo. So I began a quest to find a pharo-friendly font were the colon and equal sign are aligned. Turn out most monospaced fonts don't qualify but I did find the following fonts:

Fira Code (https://fontlibrary.org/en/font/fira-code) has a := ligature that doesn't work in Pharo.
Iosevka extended (https://fontlibrary.org/en/font/iosevka-extended) also has a := ligature that doen't work in Pharo.
Mononoki (https://fontlibrary.org/en/font/mononoki) has the two characters properly aligned but I dislike the appareance of that font. The @, in particular, looks like it comes from a low-resolution terminal from the early '80s.
Fantasque Sans Mono (https://fontlibrary.org/en/font/fantasque-sans-mono) has perfectly aligned colon and equal sign and moreover has a nice informal look.

So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.

And is an emoji a binary or keyword element? Which could hilite some interesting programming usage if it would work? ^self 😎 Or ^a 🙏 b > On 6 Sep 2021, at 19:53, Offray Vladimir Luna Cárdenas <offray.luna@mutabit.com> wrote: > >  > Now that we're talking of fonts. I wonder how difficult would be to support emojis on Pharo and if that could be solved at the font level. They have become part of day to day conversation and would be really good to show them in things like sentiment analysis. > > Cheers, > > Offray > > On 30/08/21 2:59 a. m., Guillermo Polito wrote: >> Hi tau, >> >> Thanks for it, I’ll check it :) >> >>> El 26 ago 2021, a las 1:17, tau <tau@cedalion.info> escribió: >>> >>> I've been bothered by the assignement operator (:=) and the way the colon and the equal sign aren't verticaly aligned when coding in Pharo. So I began a quest to find a pharo-friendly font were the colon and equal sign are aligned. Turn out most monospaced fonts don't qualify but I did find the following fonts: >>> >>> Fira Code (https://fontlibrary.org/en/font/fira-code) has a := ligature that doesn't work in Pharo. >>> Iosevka extended (https://fontlibrary.org/en/font/iosevka-extended) also has a := ligature that doen't work in Pharo. >>> Mononoki (https://fontlibrary.org/en/font/mononoki) has the two characters properly aligned but I dislike the appareance of that font. The @, in particular, looks like it comes from a low-resolution terminal from the early '80s. >>> Fantasque Sans Mono (https://fontlibrary.org/en/font/fantasque-sans-mono) has perfectly aligned colon and equal sign and moreover has a nice informal look. >>> >>> So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃. >>
OV
Offray Vladimir Luna Cárdenas
Mon, Sep 6, 2021 8:41 PM

heh, heh, that emoji usage would be pretty cool

^ self 😉🤯

On 6/09/21 2:31 p. m., Tim Mackinnon wrote:

And is an emoji a binary or keyword element?

Which could hilite some interesting programming usage if it would work?

^self 😎

Or 

^a 🙏 b

On 6 Sep 2021, at 19:53, Offray Vladimir Luna Cárdenas
offray.luna@mutabit.com wrote:



Now that we're talking of fonts. I wonder how difficult would be to
support emojis on Pharo and if that could be solved at the font
level. They have become part of day to day conversation and would be
really good to show them in things like sentiment analysis.

Cheers,

Offray

On 30/08/21 2:59 a. m., Guillermo Polito wrote:

Hi tau,

Thanks for it, I’ll check it :)

El 26 ago 2021, a las 1:17, tau <tau@cedalion.info
mailto:tau@cedalion.info> escribió:

I've been bothered by the assignement operator (:=) and the way the
colon and the equal sign aren't verticaly aligned when coding in
Pharo. So I began a quest to find a pharo-friendly font were the
colon and equal sign are aligned. Turn out most monospaced fonts
don't qualify but I did find the following fonts:

So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃.

heh, heh, that emoji usage would be pretty cool ^ self 😉🤯 On 6/09/21 2:31 p. m., Tim Mackinnon wrote: > And is an emoji a binary or keyword element? > > Which could hilite some interesting programming usage if it would work? > > ^self 😎 > > Or  > > ^a 🙏 b > > > >> On 6 Sep 2021, at 19:53, Offray Vladimir Luna Cárdenas >> <offray.luna@mutabit.com> wrote: >> >>  >> >> Now that we're talking of fonts. I wonder how difficult would be to >> support emojis on Pharo and if that could be solved at the font >> level. They have become part of day to day conversation and would be >> really good to show them in things like sentiment analysis. >> >> Cheers, >> >> Offray >> >> On 30/08/21 2:59 a. m., Guillermo Polito wrote: >>> Hi tau, >>> >>> Thanks for it, I’ll check it :) >>> >>>> El 26 ago 2021, a las 1:17, tau <tau@cedalion.info >>>> <mailto:tau@cedalion.info>> escribió: >>>> >>>> I've been bothered by the assignement operator (:=) and the way the >>>> colon and the equal sign aren't verticaly aligned when coding in >>>> Pharo. So I began a quest to find a pharo-friendly font were the >>>> colon and equal sign are aligned. Turn out most monospaced fonts >>>> don't qualify but I did find the following fonts: >>>> >>>> * Fira Code (https://fontlibrary.org/en/font/fira-code >>>> <https://fontlibrary.org/en/font/fira-code>) has a := ligature >>>> that doesn't work in Pharo. >>>> >>>> * Iosevka extended >>>> (https://fontlibrary.org/en/font/iosevka-extended >>>> <https://fontlibrary.org/en/font/iosevka-extended>) also has a >>>> := ligature that doen't work in Pharo. >>>> >>>> * Mononoki (https://fontlibrary.org/en/font/mononoki >>>> <https://fontlibrary.org/en/font/mononoki>) has the two >>>> characters properly aligned but I dislike the appareance of >>>> that font. The @, in particular, looks like it comes from a >>>> low-resolution terminal from the early '80s. >>>> >>>> * Fantasque Sans Mono >>>> (https://fontlibrary.org/en/font/fantasque-sans-mono >>>> <https://fontlibrary.org/en/font/fantasque-sans-mono>) has >>>> perfectly aligned colon and equal sign and moreover has a nice >>>> informal look. >>>> >>>> >>>> So, Fantasque Sans Mono is now my favorite font for coding in Pharo 😃. >>>
KO
Kasper Osterbye
Tue, Sep 7, 2021 6:12 AM

Wrt to emoji, I have at a number of times wanted to use other math symbols as binary methods (fx ‘⊕´).

For some symbols it is allowed, for some allowed the font does not show properly, and some are not allowed (eg ‘≌’).

Some letters in non-latin alphabets are allowed as keyword methods (for example one can use the ‘ꮐ’ - Cherokee Small Letter Nah) though it does not render.

I was not able to trace down where in Pharo it is decided if something is a symbol or a letter, nor where it is decided if a character is legal or not as part of a selector.

But it would be nice if Pharo was actually unicode in a somewhat consistent manner. Unicode defines character categories which can be used as definition.

Whether it is possible to use emoji as both symbols and letters I do not know, but both seems “useful”.

— Kasper

On 6 Sep 2021, at 22.41, Offray Vladimir Luna Cárdenas offray.luna@mutabit.com wrote:

heh, heh, that emoji usage would be pretty cool

^ self 😉🤯

On 6/09/21 2:31 p. m., Tim Mackinnon wrote:

And is an emoji a binary or keyword element?

Which could hilite some interesting programming usage if it would work?

^self 😎

Or

^a 🙏 b

Wrt to emoji, I have at a number of times wanted to use other math symbols as binary methods (fx ‘⊕´). For some symbols it is allowed, for some allowed the font does not show properly, and some are not allowed (eg ‘≌’). Some letters in non-latin alphabets are allowed as keyword methods (for example one can use the ‘ꮐ’ - Cherokee Small Letter Nah) though it does not render. I was not able to trace down where in Pharo it is decided if something is a symbol or a letter, nor where it is decided if a character is legal or not as part of a selector. But it would be nice if Pharo was actually unicode in a somewhat consistent manner. Unicode defines character categories which can be used as definition. Whether it is possible to use emoji as both symbols and letters I do not know, but both seems “useful”. — Kasper > On 6 Sep 2021, at 22.41, Offray Vladimir Luna Cárdenas <offray.luna@mutabit.com> wrote: > > heh, heh, that emoji usage would be pretty cool > > ^ self 😉🤯 > > On 6/09/21 2:31 p. m., Tim Mackinnon wrote: >> And is an emoji a binary or keyword element? >> >> Which could hilite some interesting programming usage if it would work? >> >> ^self 😎 >> >> Or >> >> ^a 🙏 b >>