• aleq@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I use SauceCode Pro (variant of SourceCode Pro with nerdfonts stuff). I’ve given up on changing it because everytime I do I find stuff that’s “non-standard” in the fonts I test and it bugs the hell out of me. @ signs are the absolute worst offenders, which is weird because they have a very uniform look everywhere that’s not a specialized “programming” monospace font.

    • abhibeckert@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      The standard @ symbol has four horizontal lines and worse the right side of the “a” is a vertical line contained inside a circle without touching it.

      In a variable width font it’s often fully twice as wide as a regular “a” character. The variable width font lemmy uses for example, at least as rendered by my computer has six pixels for a lowercase “a” and also six pixels for the small one contained inside the “@” symbol, then another six pixels of width for the circle around it.

      That’s an impossible task in a fixed width code font where users typically choose a size so small that the regular “a” can’t be reduced any further while still being readable.

      Which is why basically all code fonts (including Source Code Pro) cheat and modify the symbol so the inner circle overlaps the outer one on the right edge. Some of them do that better than others at inventing their own variant of @.

      • aleq@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Yeah I guess you’re right. Probably just seen the Source Code Pro one so many times that I stopped being annoyed with it.

        Should try exposing myself to the Jetbrains Mono font until I get used to that instead, then I won’t have to fiddle with that part of the IDE settings.