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
Use most current versions of Source Sans Pro and Merriweather #2934
Conversation
I believe in one or both of these fonts, the font creators created a subset of the font for us, but I guess it's OK to start using the latest. Can you share what version of each you're using? |
Is there a way to get the version through google fonts? I'm not 100% sure anything has changed since our version, but I just figured I'd grab whatever was currently available... |
Here are the latest releases of each: Though I don't know what Google fonts is using. |
@miguelsousa previously did some post-processing on Source Sans Pro in #802 #848 to keep them performant and a small footprint size. |
Yeah, that's quite a difference. Also, noticed a lot of changed on Merriweather since the last release https://github.com/EbenSorkin/Merriweather/commits/master. Should we check with @EbenSorkin to see if he plans on cutting a release anytime soon? Is this ready to go in now? @miguelsousa and @EbenSorkin can always provide feedback. |
I'd love to get it in now, with follow up from the creators/maintainers. |
I'd like to review the new font files before this PR is merged. Please allow me a couple days for that. |
@miguelsousa Thanks! We'll pause this PR until we get your feedback. Please let us know what you find. The Source Sans files in this PR are those from https://github.com/adobe-fonts/source-sans-pro/releases/tag/2.045R-ro%2F1.095R-it — subsetted into Latin and and converted into woff, woff2, and eot by https://transfonter.org/ I'd be curious to know if this is a proper workflow or does anything unexpected to the files. |
@thisisdano I can tell you right now that the new Source Sans files have less character support (and less language support) and are lacking the small cap glyphs, so I expect several issues will regress if you merge this PR as is. |
@miguelsousa also created a dedicated repository for this project where he mentioned being able to publish updates whenever there was a new release of SSP. Is this something we should refer to going forward? |
As for why the new weights and styles are included: In general, it's to support a wider range of project needs. USWDS 2.0 supports a broader range of weights, so it made sense to make those weights available in the distribution package. System users can now activate or deactivate weights depending on their project needs — and the system only builds the necessary |
@maya that's right. I was about to mention that repo. |
@miguelsousa That would be very helpful, thank you. |
Also, now that I know that our version of Source Sans has small caps support, we should add that support into our text utilities. |
@thisisdano please fetch the Source Sans subsets from here https://github.com/miguelsousa/source-sans-pro-subset/tree/master/subset |
Added new SSP subset font files in 59d71b2. @thisisdano what is the new cap height value for Merriweather? |
@maya Let's use |
Since the new font metrics of Merriweather seems a bit thicker, noting the difference of with and without antialiasing on headings on dark backgrounds (via hero component): normalantialiased |
LGTM for now. Let's monitor how things change with the new Merriweather and respond as needed. @maya can you do the approving? |
This updates the font packages to use the most current versions of Source Sans Pro and Merriweather from google fonts — with additional formats (eot, woff, woff2) generated by https://transfonter.org/
It also updates the license to include the provenance of these new versions.
I included all weights and styles of these new versions since they can be manually disabled in settings and only faces used on the page will actually load.
😎 Preview