minad / org-modern

:unicorn: Modern Org Style
GNU General Public License v3.0
1.51k stars 46 forks source link

Top 2 level default fold glyphs not support by many fonts #192

Closed jdtsmith closed 4 months ago

jdtsmith commented 4 months ago

Very nice new fold capability. Unfortunately the top two levels of the new 'fold characters don't seem to be supported in many fonts, e.g. Iosevka. E.g. 0x2B9E BLACK RIGHTWARDS EQUILATERAL ARROWHEAD isn't present in any fonts on my system.

Unfortunately there are far more right-facing than down-facing arrows. A couple possibilities include ("˃" . "˅") ("↦" . "↧"); there may be more.

lassemaatta commented 4 months ago

Excellent, I was just googling what might cause this :)

Btw, I think the 4th level symbols are in the wrong order (("▿" . "▹")), I assume they should be similar to the three other pairs (right + down, not down + right)?

jdtsmith commented 4 months ago

This site catalogs which fonts support which characters, i.e. not many for the nice looking 'BLACK DOWNWARDS EQUILATERAL ARROWHEAD' (U+2B9F).

minad commented 4 months ago

Thanks. Tbh I found the equilateral arrowhead even a little bit too fancy. I use triangles only now which looks more neutral and works better with Iosevka (and probably many other fonts). I noticed that the equilateral arrowhead came from some separate FreeSerif font on my system which also caused inconsistencies with the monospaced Iosekva.

jdtsmith commented 4 months ago

The new 2nd level triangles (aka "BLACK MEDIUM DOWN/RIGHT-POINTING TRIANGLE") are not available in many fonts, so display code will very often reach for another font, which often changes the line spacing (and slows redisplay).

I suggest switching to 0x25B8, and 0x25BE,

minad commented 4 months ago

I've updated the list in https://github.com/minad/org-modern/commit/5393edbb5a078348d0eea5723868c35be3e73494. I use https://www.fileformat.info/info/unicode/char/2bc8/index.htm now. All the triangles are at least supported by Iosevka and Pragmata.

minad commented 4 months ago

Btw, the README suggests to use a separate face for org-modern'ized symbols. This should avoid display issues.

(set-face-attribute 'org-modern-symbol nil :family "Iosevka")

Besides that, the list is customizable.

jdtsmith commented 4 months ago

Sadly no medium triangles in my fonts. Will customize. I don't know how many people know a missing glyph will "pull up" another font automatically, which means line spacing can change for lines with that glyph.

minad commented 4 months ago

Which font do you use?