Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ssssota/local-fonts
Preview fonts installed on your computer. (via Local Font Access API) You can also view font information. (via ttf-parser + WASM)
https://github.com/ssssota/local-fonts
font wasm
Last synced: about 2 months ago
JSON representation
Preview fonts installed on your computer. (via Local Font Access API) You can also view font information. (via ttf-parser + WASM)
- Host: GitHub
- URL: https://github.com/ssssota/local-fonts
- Owner: ssssota
- Created: 2023-01-07T10:48:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T12:38:42.000Z (about 2 years ago)
- Last Synced: 2024-11-04T00:02:30.645Z (3 months ago)
- Topics: font, wasm
- Language: Svelte
- Homepage: https://local-fonts.ssssota.dev
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# local-fonts
https://local-fonts.ssssota.dev
Preview fonts installed on your computer. (via [Local Font Access API](https://developer.mozilla.org/docs/Web/API/Local_Font_Access_API))
You can also view font information. (via [ttf-parser](https://github.com/RazrFalcon/ttf-parser) + WASM)
## Screenshots
|Preview and search|View font details|
|---|---|
|![Preview](https://user-images.githubusercontent.com/15074382/211305227-a1b1d278-299b-4f2f-8fb2-8eead8b0f996.png)|![local-fonts ssssota dev_ (1)](https://user-images.githubusercontent.com/15074382/211305399-64859a79-7587-403d-b20e-fd22d6439ad5.png)|## Development
### Requirements
- [Node.js](https://nodejs.org/) v16↑
- [rustup](https://www.rust-lang.org/tools/install) (Rust, Cargo)
- [wasm-pack](https://rustwasm.github.io/wasm-pack/)### Setup
```sh
git clone https://github.com/ssssota/local-fonts.git
cd local-fonts
corepack enable
pnpm install
```### Development
```sh
pnpm wasm
pnpm dev
```### Build
```sh
pnpm wasm
pnpm build
```