Skip to content

LibreService/my_font_converter

Repository files navigation

My Font Converter

Convert ttf/woff2 fonts.

https://my-font-converter.vercel.app/

This is a STATIC website so you DON'T need to own a server to host it.

All computation is performed in browser, thanks to Web Assembly.

It's also a PWA, so you can install it like a native App and use it OFFLINE.

Self host

Download latest artifact built by GitHub Actions.

Development workflow

My Font Converter can be built on Linux and macOS.

For Windows, you may use WSL.

Clone repo

git clone --recursive https://github.com/LibreService/my_font_converter

Install node

You may use nvm to install node.

Install pnpm and dev dependencies

npm i -g pnpm
pnpm i

Install emsdk

https://emscripten.org/docs/getting_started/downloads.html

Build wasm

pnpm run lib
pnpm run wasm

Run develop server

pnpm run dev

The app is accessible at http://localhost:5173

Lint

pnpm run lint:fix

Check type

pnpm run check

Build

pnpm run build

Test

pnpm run test

Preview

pnpm run preview

Deploy (maintainer only)

# set VERSION to avoid CDN and browser caching old version
export LIBRESERVICE_CDN=https://cdn.jsdelivr.net/npm/@libreservice/my-font-converter@VERSION/dist/

vercel build --prod
npm publish
vercel deploy --prebuilt --prod

License

AGPLv3+