Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bschlenk/otfjs
https://github.com/bschlenk/otfjs
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bschlenk/otfjs
- Owner: bschlenk
- License: mit
- Created: 2023-11-08T02:06:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T11:27:29.000Z (11 days ago)
- Last Synced: 2024-11-04T12:28:53.748Z (11 days ago)
- Language: TypeScript
- Homepage: https://bschlenk.com/otfjs/
- Size: 5.27 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# otfjs
This project is my way of learning more about how fonts work under the hood. My goal is to eventually use the knowledge gained to write a Figma plugin for creating fonts using SVG paths.
## Development
This project is built with [pnpm]. First, make sure dependencies are installed. Run the following from the root of the repo:
```sh
pnpm install
```Then spin up the dev server:
```sh
pnpm dev
```This runs `tsc --watch` in the `otfjs` package and `vite dev` in the `otfjs-ui` package, so any changes you make to either package will be picked up automatically.
## Reference
- [Microsoft OpenType font spec][otf-spec]
This spec is very well written and easy to undersatnd. It's made working on this project a delight.
- [Apple TrueType reference manual][tt-manual]
Not as good as the Microsoft docs, but generally the graphics explaining the complex instructions are more helpful as they give examples where the freedom and projection vectors are in different directions.
[pnpm]: https://pnpm.io/
[otf-spec]: https://learn.microsoft.com/en-us/typography/opentype/spec/
[tt-manual]: https://developer.apple.com/fonts/TrueType-Reference-Manual/