
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
fontsampler-js
Advanced tools
A configurable standalone webfont type tester for displaying and manipulating sample text in the browser.
Fontsampler library ~13kb minified & gzipped Fontsampler skin js & css ~15kb minified & gzipped
Support for:
Via npm:
$ npm install fontsampler-js
See underscoretype.github.io/fontsampler-js/ for detailed examples.
A minimal example:
<script src="assets/fontsampler.js"></script>
<script src="assets/fontsampler-skin.js"></script>
<link rel="stylesheet" href="assets/fontsampler-skin.css">
…
<div id="demo"></div>
…
<script>
var fonts = [
"name": "My Font",
"files": ["path/to/file.woff", "path/to/file.woff2"]
]
var options = {
order: [["fontsize", "lineheight", "letterspacing"], "tester"]
}
var demo = new Fontsampler(document.getElementById("demo"), fonts, options)
FontsamplerSkin(demo)
demo.init()
</script>
Currently work in progress and pre-release. API not stable and likely to change.
PRs, issue reports and feature requests welcome.
Development requirements:
$ npm install
If you use VSCode src compiling tasks should automatically be started, else see the package.json scripts.
For testing:
$ npm install -g protractor jasmine
$ webdriver-manager start
$ npm run test
See CHANGELOG.md
Licensed under MIT License
FAQs
Render configurable webfont testers for woff / woff2 / variable fonts
We found that fontsampler-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.