Page 1 of 1

Ligature Fonts

Posted: Sun Nov 11, 2018 11:49 pm
by jussij
The latest version of Zeus adds support for ligature fonts like FiraCode.

To better understand what this means consider the following code:

Code: Select all

<-< <<- <-- <- <-> -> --> ->> >->
<=< <<= <==    <=> => ==> =>> >=>
    >>= >>- >- <~> -< -<< =<<
        <~~ <~ ~~ ~> ~~>
     <<< << <= <>  >= >> >>>

   {. {| [| <:  ?  :> |] |} .}
   <||| <|| <| <|> |> ||> |||>

            <$ <$> $>
            <+ <+> +>
            <* <*> *>

       \  \\  /* */  /// //
      </ <!--  </>  --> />

       ;; :: ::: !! ?? %% &&
      || .. ... ..< .? ?. ?:
       -- --- ++ +++ ** ***

With the ligature font option disabled that code looks like this:
lf-disabled.png
lf-disabled.png (11.21 KiB) Viewed 478 times

With the ligature font option enabled that code looks like this:
lf-enabled.png
lf-enabled.png (15.2 KiB) Viewed 478 times

To enable the ligature font option just install a font that supports these ligature features and using the Options, Editor Options menu setup the font as shown below:
lf-enable.png
lf-enable.png (25.61 KiB) Viewed 478 times