-
-
Notifications
You must be signed in to change notification settings - Fork 166
GitHub font preview
Rob Garrison edited this page Oct 24, 2022
·
33 revisions
A userscript that adds a font file preview
- This script adds the ability to preview fonts & glyphs.
- Currently ony OpenType (otf), TrueType (ttf) and Web Open (woff; not woff2) font formats are supported.
- opentype.js is used for font rendering and the preview code has been blatantly copied from the font inspector and glyph inspector demos (Copyright © 2015 Frederik De Bleser; MIT license).
- Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.
- After installing, try the userscript on one of these pages:
- Update dependencies.
- Fix colors.
- Update mutation script.
- Update mutation script.
- Update selectors for GitHub changes & cleanup.
- Update GitHub icon.
- Update mutation script.
- Update mutation script.
- Update mutation script.
- Update mutation script.
- Update mutation script url.
- Update assets.
- Fix lint issue.
- Update mutation script url.
- Change license to MIT.
- Update mutation url.
- Switch to using mutations.js.
- Use pjax event & fix linting.
- Clean up linting issues.
- Fix HR css breaking page layouts.
- Catch javascript error on diff pages.
- Limit height of font data blocks.
- Add UI improvements
- Add loading indicator.
- Toggle arrows & points in glyph preview.
- Toggle glyph index/unicode.
- Increase font size of glyph index/unicode.
- Add color to pagination.
- Increase size of glyph blocks.
- Prevent glyph data from displaying "undefined" values.
- Show "Undefined" for empty font tables; usually the Font Variations (
fvar
) table.
- Initial commit