fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.91k stars 284 forks source link

Font sizing rework #2896

Closed fonsp closed 2 months ago

fonsp commented 2 months ago

We use the font Alegreya Sans for paragraphs in cell output (like Markdown text), but this typeface is scaled small relative to most typefaces, including the fallback fonts: "Trebuchet MS", sans-serif.

This means that text appears disproportionally big while Alegreya is loading, or when the font did not load at all. It also makes relative sizing less intuitive: 1rem is quite a lot bigger than the main text.

Before

Here I am switching the Alegreya font on an off, to see the difference with the fallback fonts:

https://github.com/fonsp/Pluto.jl/assets/6933510/0aef4e75-0ef6-4a4e-b61d-126ed9d8a833

After

https://github.com/fonsp/Pluto.jl/assets/6933510/030a9066-5a3f-481b-a19e-09747c9eb522

github-actions[bot] commented 2 months ago

Try this Pull Request!

Open Julia and type:

  julia> import Pkg
  julia> Pkg.activate(temp=true)
  julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="font-stack-rework")
  julia> using Pluto