Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #236 from chosak/load-webfonts-from-cdn
Browse files Browse the repository at this point in the history
Change default webfont loading to use CDN
  • Loading branch information
chosak committed Nov 16, 2018
2 parents a3c465e + 9a5de8d commit 76a545f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ The "Before You Claim" page should load at [localhost:8000/before-you-claim/](ht
### Fonts
This application uses a proprietary licensed font (Avenir Next) that is not included in this repository.

If you want to pull this font from a content delivery network (CDN), you can set
By default it will try to load this font from the Fonts.com content delivery network (CDN).
This behavior can be modified to instead try to load the font locally from
the `retirement_api/static/retirement/webfonts/` directory by setting
[`@use-font-cdn`](https://github.com/cfpb/retirement/blob/master/src/css/main.less#L29)
to `true` and rebuild the assets with `gulp build`.

If you instead want to install self-hosted fonts locally, you can place the font files
in `retirement_api/static/retirement/webfonts/` and restart the local web server.
to `false` and rebuilding the assets with `gulp build`. Restart the local web server
once you've made this change.

For Bureau employees or others with access to our private fonts repository,
you can perform this step by creating a symbolic link to your local copy of
Expand Down
2 changes: 1 addition & 1 deletion src/css/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// This is the path for self-hosted fonts.
@cf-fonts-path: '../webfonts';
// Whether or not to override the local path and retrieve fonts from fonts.net.
@use-font-cdn: false;
@use-font-cdn: true;

// Import the Capital Framework enhancements
@import (less) "cf-enhancements.less";
Expand Down

0 comments on commit 76a545f

Please sign in to comment.