https://github.com/bramstein/hyphenation-justification-vf
https://github.com/bramstein/hyphenation-justification-vf
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bramstein/hyphenation-justification-vf
- Owner: bramstein
- License: bsd-2-clause
- Created: 2021-04-05T15:36:49.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-06T07:48:54.000Z (about 5 years ago)
- Last Synced: 2025-03-19T09:14:19.906Z (about 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Line Breaking, Justification, and Variable Fonts
A look at line breaking and justification, and how variable fonts will improve justified text.
Demonstration of using variable fonts to improve justification, presented at Robothon Conference 2018.
## How to use
Bring your own variable font. :) The code references Gimlet Variable Font, but the font itself is not included for licensing reasons. In order to use your own variable font, update the references to Gimlet in `index.html`. You may also need to update the width axis calculations depending on the range of the `wdth` axis of your font. Currently it is set to `97 +/- 3%`, where `97` is the "default" width. If your font has a different range, update this value accordingly in the CSS and JavaScript code in `index.html`.