GitHub now uses default system font(github.com)

over 3 years ago from Dominik Schmidt, kreativgebiet.com

  • Alec LomasAlec Lomas, over 3 years ago

    Relative units (rem/em) are your friends, if you learn how to use them properly.

    0 points
    • Weston Thayer, over 3 years ago

      I don't think they'll help in this case. rem/em don't update with changes to font-family, only font-size.

      0 points
      • Mark Otto, over 3 years ago

        We're not using relative units in any place save for our Markdown files (to make our rendered Markdown scale easily for mobile, issue comments, and readmes/blobs).

        The few cases of misaligned icons are being fixed as bugs. Overall, we haven't seen too much funkiness across the browsers as the main system fonts are pretty similar size-wise.

        1 point
        • Weston Thayer, over 3 years ago

          Thanks for the response, that's super interesting. I assumed the vertical metrics would be very different, but didn't bother to check.

          Are the misaligned icon issues font agnostic, or are you having to find a way to make font-specific fixes?

          0 points
          • Mark Otto, over 3 years ago

            Most are agnostic to any particular font. Haven't run into anything egregious that would require browser-specific overrides yet.

            1 point