playerofgames / logseq-mia-theme

A Logseq theme inspired by macOS and iA Writer.
MIT License
83 stars 4 forks source link

arrow symbol rendering #8

Closed crendl closed 2 years ago

crendl commented 2 years ago

hi again,

using the standard theme in logseq, -> will be rendered as an arrow → with miA, this not happening.

any reason for this? is this due to a certain version of markdown implemented?

regards

playerofgames commented 2 years ago

This is due to something called contextual ligatures in the font used by the default Logseq theme. The iA Writer fonts do not contain this contextual ligature.

If you want to use the default Logseq font with the miA theme, which is called Inter, you can add the following to your custom.css file:

:root {
  --content-font-family: "Inter";
}

Of course, this may remove one of the reasons for choosing the them in the first place! (No need to install the font, as it is included in the base Logseq CSS.)

If you are looking for a monospace font with this sort of ligature, you might like Fira Code which you could install and use with a similar CSS override as above.

crendl commented 2 years ago

thanks very much martin for taking your time to explain it to me also giving me some options, it is much appreciated!

edit: i opted for the possibility to add custom commands in logseq and stick with san francisco: :commands [ ["arrr" "🠆"], ["arrl" "🠄"]]