juliamono icon indicating copy to clipboard operation
juliamono copied to clipboard

Mystery spacing issues

Open GanerCodes opened this issue 1 year ago • 6 comments
trafficstars

Alright so I've been absolutely beaned by the following issue: 99% of everything works fine. Not problems at all. however There are a few random spacing issues that I cannot figure out what the issue is. Characters like 〚〛❴❵➰ when in my various editors likes to:

  1. Be double width, hugging the left side (similar to how emojis work from other fonts) image
  2. Render fine, however breaks vertical traversal image

i have spent hours messing with fontforge, fontconfig, etc etc etc and I cannot for the life of me understand this. Please help

GanerCodes avatar Mar 23 '24 21:03 GanerCodes

Hi. Any idea what version? (Look at glyph U+E843.) That vertical bar looks very short to me 🤔. Editor or terminal?

Difficult to reproduce or diagnose until there's more information...

cormullion avatar Mar 23 '24 22:03 cormullion

Hi. Any idea what version? (Look at glyph U+E843.) That vertical bar looks very short to me 🤔. Editor or terminal?

Difficult to reproduce or diagnose until there's more information...

Latest release (0.054), also the bar is ∣ not | my bad

Both vscodium and st terminal, im sure other things too but those are the ones I use

GanerCodes avatar Mar 24 '24 02:03 GanerCodes

Interesting...

As a precaution, please delete JuliaMono-RegularLatin.ttf and JuliaMonoBold-Latin.ttf from your system. These are restricted to a basic Latin character set and only have 330 glyphs. Sometimes these get picked up by mistake by applications and as a result fallback fonts are used extensively.

At first I thought you were typing the mathematical left bracket U+27E6 (⟦) but I see now that you're typing the CJK left bracket U+301A (〚) which as you can already see (at least on github) has a double-spacing effect in some fonts and in some applications. But in JuliaMono-Regular these glyphs are the same width.

Here's FontGoggle's breakdown of ⟦⟧〚〛❴❵:

Screenshot 2024-03-24 at 09 41 15

So design-wise these glyphs are the same width, and should be behaving normally. The question is why they're being treated as double-space CJK.

cormullion avatar Mar 24 '24 09:03 cormullion

Yep it still happens (only had JuliaMono-Regular.ttf enabled anyway).  is normal as well. The following are more problem-characters: "✣➡❗♯⚇✓✗"

The existence of mathematical left/right bracket is useful as well btw thanks

GanerCodes avatar Mar 24 '24 21:03 GanerCodes

Well ❗ is also an emoji, like a smiley, so some applications will set it wider (double width), others won't, if a single-width glyph is present in the font (JuliaMono has a version of this glyph).

For example: VSCodium editor (s1 is ❗, s2 is !:

Screenshot 2024-03-25 at 09 40 28

VSCodium terminal:

Screenshot 2024-03-25 at 09 41 03

I can't reproduce any errors with the other characters - "✣➡♯⚇✓✗" - though.

It would probably be better for your use case if you used fonts like FiraCode, JetBrains, or Plex Mono - these have fewer glyphs and the behaviour of the fallback mechanism for emoji-like characters will be easier to predict.

cormullion avatar Mar 25 '24 09:03 cormullion

This issue has been open for 30 days with no activity.

github-actions[bot] avatar Apr 25 '24 02:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 09 '24 02:05 github-actions[bot]