Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve consistency of type rendering weight across OSes #1677

Merged
merged 2 commits into from
Mar 11, 2023

Commits on Mar 9, 2023

  1. Improve consistency of type rendering weight across OSes

    Fixes elixir-lang#1675
    
    As the sidebar type is thinned in Mac OS via the alternative anti-aliasing, its weight can be increased from light to normal to avoid overly thin type in Linux and Windows.
    
    The thin weight is preserved/used in places where differentiation from normal/bold is warranted.
    
    Additionally, the normal/400 weight font was not being loaded, which resulted in type set to normal being rendered light. We're now loading light/300, normal/400 and bold/700 for the Lato sans serif font.
    DavidOliver committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    7258514 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2023

  1. Revert to default text anti-aliasing and vary use of light weight in …

    …sidebar based on OS
    
    Grayscale-only anti-aliasing, which we set in order to lessen the difference in type rendering across OSes, resulted in suboptimal type rendering in Mac OS. We now use normal/400 instead of light/300 in the sidebar if the UA string indicates a non-Apple OS.
    DavidOliver committed Mar 11, 2023
    Configuration menu
    Copy the full SHA
    5e6c86e View commit details
    Browse the repository at this point in the history