Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@code.gov/code-gov-font
Advanced tools
Custom font with icons used by code-gov-web. Based on font-awesome. Built using fontello.
Custom font for icons used by code-gov-web. Based on font-awesome and icon by Hadrien. Built using fontello.
In order to use the font on a website, you have to install it first. There's a good chance that you will have to update the paths below to match you folder structure.
@font-face {
font-family: 'code-gov';
src: url('../font/code-gov.eot?90902143');
src: url('../font/code-gov.eot?90902143#iefix') format('embedded-opentype'),
url('../font/code-gov.woff2?90902143') format('woff2'),
url('../font/code-gov.woff?90902143') format('woff'),
url('../font/code-gov.ttf?90902143') format('truetype'),
url('../font/code-gov.svg?90902143#code-gov') format('svg');
font-weight: normal;
font-style: normal;
}
npm install
config.json
file from code-gov-font project to the fontello website.code-gov
and download the new package (download webfont) as a .zipconfig.json
then use it to replace the config.json
in the code-gov-font directorynpm run build
to rebuild the fontThis project is a dependency of code-gov-style. After updating this font, a new version of this package must be released and the @code.gov/code-gov-font
version must be updated in code-gov-style. Follow our Component Release instructions for details on how to do this.
*Note: After these steps have been completed, you must run npm install
then run npm run update-font
in code-gov-style to finish the font update. And finally, in code-gov-style, update the icon list in the _fontello.scss
file to add any new icons and delete any that were removed.
You can find the icon unicode character ( { content: '\f253'; }
) info in the code-gov.svg
file by searching for the name of the icon you just added. This info is also on the fontello site under the Customize Codes
tab.
Fontello has some documentation on How to save and load projects that has additional info for reference.
If you have any questions, please post a GitHub issue! :-)
Twitter: @CodeDotGov
Email: code@gsa.gov
LinkedIn: code-gov
Join our #opensource-public Slack channel: https://chat.18f.gov/
FAQs
Custom font with icons used by code-gov-web. Based on font-awesome. Built using fontello.
The npm package @code.gov/code-gov-font receives a total of 0 weekly downloads. As such, @code.gov/code-gov-font popularity was classified as not popular.
We found that @code.gov/code-gov-font demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.