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

feature: Open Sans font files #214

Merged
merged 5 commits into from
Apr 17, 2024
Merged

feature: Open Sans font files #214

merged 5 commits into from
Apr 17, 2024

Conversation

ShrimpCryptid
Copy link
Contributor

@ShrimpCryptid ShrimpCryptid commented Apr 12, 2024

Estimated review size: small, 10 minutes

Removes the Merriweather Sans and Overpass font files and replaces them with Open Sans. This change ensures that the viewer looks the same even when embedded!

We are importing Open Sans from Google Fonts, which means that it should work in almost all browser contexts. For full compatibility with older browsers, however, we need to include the WOFF, WOFF2, TTF, EOT, and SVG file formats. (https://css-tricks.com/snippets/css/using-font-face-in-css/#h-deepest-possible-browser-support)

Google Fonts will also not work in contexts without internet access, so having these fonts embedded in the project ensures that the viewer will look consistent.

Google Font Font Files
image image

There are some super minor differences between the fonts included (500 vs. 600 weight on the semibold) but otherwise they should look identical.

@ShrimpCryptid ShrimpCryptid added the enhancement New feature or request label Apr 12, 2024
@ShrimpCryptid ShrimpCryptid self-assigned this Apr 12, 2024
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added additional fallbacks for other languages and emojis. I don't expect these other fonts to be used, but it's good to include just in case!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fallback fonts copied from the parent app, which I think is currently provided by Ant.

image

@ShrimpCryptid ShrimpCryptid marked this pull request as ready for review April 12, 2024 18:13
@ShrimpCryptid ShrimpCryptid requested a review from a team as a code owner April 12, 2024 18:13
@ShrimpCryptid ShrimpCryptid requested review from blairlyons, ascibisz and meganrm and removed request for a team and ascibisz April 12, 2024 18:13
@ShrimpCryptid ShrimpCryptid linked an issue Apr 12, 2024 that may be closed by this pull request
@ShrimpCryptid ShrimpCryptid changed the base branch from feature/landing-page-styling to main April 17, 2024 16:48
@ShrimpCryptid ShrimpCryptid merged commit a1b9774 into main Apr 17, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

landing page
3 participants