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

markdown-math: remove font variants #143372

Closed
aeschli opened this issue Feb 18, 2022 · 1 comment
Closed

markdown-math: remove font variants #143372

aeschli opened this issue Feb 18, 2022 · 1 comment
Assignees
Labels
engineering VS Code - Build / issue tracking / etc. insiders-released Patch has been released in VS Code Insiders
Milestone

Comments

@aeschli
Copy link
Contributor

aeschli commented Feb 18, 2022

Our builds contain many KaTeX fonts in 3 different formats. In order to keep the number of files in our build small, can we remove some of the formats? (e.g. just use woff)

| +---markdown-math
| | +---notebook-out
| | | | katex.js
| | | | katex.min.css
| | | |
| | | ---fonts
| | | KaTeX_AMS-Regular.ttf
| | | KaTeX_AMS-Regular.woff
| | | KaTeX_AMS-Regular.woff2
| | | KaTeX_Caligraphic-Bold.ttf
| | | KaTeX_Caligraphic-Bold.woff
| | | KaTeX_Caligraphic-Bold.woff2
| | | KaTeX_Caligraphic-Regular.ttf
| | | KaTeX_Caligraphic-Regular.woff
| | | KaTeX_Caligraphic-Regular.woff2
| | | KaTeX_Fraktur-Bold.ttf
| | | KaTeX_Fraktur-Bold.woff
| | | KaTeX_Fraktur-Bold.woff2
| | | KaTeX_Fraktur-Regular.ttf
| | | KaTeX_Fraktur-Regular.woff
| | | KaTeX_Fraktur-Regular.woff2
| | | KaTeX_Main-Bold.ttf
| | | KaTeX_Main-Bold.woff
| | | KaTeX_Main-Bold.woff2
| | | KaTeX_Main-BoldItalic.ttf
| | | KaTeX_Main-BoldItalic.woff
| | | KaTeX_Main-BoldItalic.woff2
| | | KaTeX_Main-Italic.ttf
| | | KaTeX_Main-Italic.woff
| | | KaTeX_Main-Italic.woff2
| | | KaTeX_Main-Regular.ttf
| | | KaTeX_Main-Regular.woff
| | | KaTeX_Main-Regular.woff2
| | | KaTeX_Math-BoldItalic.ttf
| | | KaTeX_Math-BoldItalic.woff
| | | KaTeX_Math-BoldItalic.woff2
| | | KaTeX_Math-Italic.ttf
| | | KaTeX_Math-Italic.woff
| | | KaTeX_Math-Italic.woff2
| | | KaTeX_SansSerif-Bold.ttf
| | | KaTeX_SansSerif-Bold.woff
| | | KaTeX_SansSerif-Bold.woff2
| | | KaTeX_SansSerif-Italic.ttf
| | | KaTeX_SansSerif-Italic.woff
| | | KaTeX_SansSerif-Italic.woff2
| | | KaTeX_SansSerif-Regular.ttf
| | | KaTeX_SansSerif-Regular.woff
| | | KaTeX_SansSerif-Regular.woff2
| | | KaTeX_Script-Regular.ttf
| | | KaTeX_Script-Regular.woff
| | | KaTeX_Script-Regular.woff2
| | | KaTeX_Size1-Regular.ttf
| | | KaTeX_Size1-Regular.woff
| | | KaTeX_Size1-Regular.woff2
| | | KaTeX_Size2-Regular.ttf
| | | KaTeX_Size2-Regular.woff
| | | KaTeX_Size2-Regular.woff2
| | | KaTeX_Size3-Regular.ttf
| | | KaTeX_Size3-Regular.woff
| | | KaTeX_Size3-Regular.woff2
| | | KaTeX_Size4-Regular.ttf
| | | KaTeX_Size4-Regular.woff
| | | KaTeX_Size4-Regular.woff2
| | | KaTeX_Typewriter-Regular.ttf
| | | KaTeX_Typewriter-Regular.woff
| | | KaTeX_Typewriter-Regular.woff2
| | |
|

@mjbvz mjbvz added the engineering VS Code - Build / issue tracking / etc. label Feb 22, 2022
@mjbvz mjbvz added this to the March 2022 milestone Feb 22, 2022
@mjbvz
Copy link
Contributor

mjbvz commented Feb 22, 2022

Looks like woff2 is widely supported now too: https://caniuse.com/woff2

These are about half the size of the ttf files too

@mjbvz mjbvz modified the milestones: March 2022, February 2022 Feb 22, 2022
@mjbvz mjbvz closed this as completed in 24c814d Feb 22, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
engineering VS Code - Build / issue tracking / etc. insiders-released Patch has been released in VS Code Insiders
Projects
None yet
Development

No branches or pull requests

3 participants
@aeschli @mjbvz and others