Zulip Chat Archive
Stream: lean4
Topic: web editor font family and size
Shreyas Srinivas (Jan 30 2024 at 15:02):
Two questions:
-
What is the current default font family and font size in the web editor. See screenshot (
web-editor-sample-for-font.pdf) -
Is it possible to change the font size? Is such a feature in the pipeline?
Richard Copley (Jan 30 2024 at 16:03):
The web app doesn't serve its own fonts, so it is up to your browser to choose one of your installed fonts to implement the CSS style. That text's CSS style has has font-family Consolas, "Courier New", monospace
and font-size 14px
. (Depending on your browser, you might be able to shift-(right click) on the text to bring up the context menu and click "Inspect" to check this.)
For me, here, the text is displayed in Consolas, but that is not what is in your screenshot. That looks like Bitstream Vera Sans Mono.
Jon Eugster (Jan 30 2024 at 17:09):
Currently, there's no new feature planned, but you're very welcome to contribute one! (here: lean4web)
you can also dm me if you have questions about the code :)
Shreyas Srinivas (Jan 31 2024 at 00:48):
Jon Eugster said:
Currently, there's no new feature planned, but you're very welcome to contribute one! (here: lean4web)
you can also dm me if you have questions about the code :)
I'd love to. Currently I am swamped with work. If this issue remains unresolved till mid March, I will probably give it a try.
Eric Rodriguez (Feb 06 2024 at 11:33):
Is there any way to change the infoview font?
Kevin Buzzard (Feb 06 2024 at 12:03):
There must be, because that's not the font I have :-)
František Silváši 🦉 (Feb 06 2024 at 12:13):
You can style it with CSS with Lean4 > Infoview: Style
option.
E.g. body { font-family: "Comic Sans MS", "Comic Sans"; }
Last updated: May 02 2025 at 03:31 UTC