From 42364fd900f34003be63540d5f4bb5fca9f8086c Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Thu, 24 Nov 2022 14:09:34 +0800 Subject: [PATCH] add maplibre files; fix gh-pages dir --- .github/funding.yml | 2 ++ .github/workflows/actions.yml | 2 +- CONTRIBUTING.md | 11 +++++++++++ LICENSE.txt | 1 + README.md | 14 -------------- 5 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 .github/funding.yml create mode 100644 CONTRIBUTING.md diff --git a/.github/funding.yml b/.github/funding.yml new file mode 100644 index 0000000..6e69998 --- /dev/null +++ b/.github/funding.yml @@ -0,0 +1,2 @@ +github: [maplibre] +open_collective: maplibre \ No newline at end of file diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index ddb7413..ec55f65 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -41,6 +41,6 @@ jobs: if: ${{ github.ref == 'refs/heads/main' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./app/dist + publish_dir: ./dist force_orphan: true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..2284808 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,11 @@ +# Building + +If you want to compile the WebAssembly components from scratch, you'll need the following: + +* The [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html) installed and activated on your machine (`emcc` on your path) +* A [boost](https://www.boost.org) installation on your machine + +Clone this repository and all submodules with `git clone --recursive` + +Use `./build.sh PATH_TO_INCLUDE_DIR` to build the WASM output, where `PATH_TO_INCLUDE_DIR` is the directory of your local Boost install. + diff --git a/LICENSE.txt b/LICENSE.txt index 88b8b4f..6defeb5 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,3 +1,4 @@ +Copyright (c) 2022 MapLibre contributors Copyright (c) 2019-2022, Protomaps LLC Copyright (c) 2014, Mapbox All rights reserved. diff --git a/README.md b/README.md index 29d1f5c..7b7665b 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,6 @@ Generates Signed Distance Field fonts for use in MapLibre GL, Mapbox GL, etc. Simply upload a font and convert; it runs 100% client-side via WebAssembly. -There is as little code here as possible, most of it is taken from [node-fontnik](https://github.com/mapbox/node-fontnik). - ## Usage Go to the web app at [protomaps.github.io/sdf-glyph-tool/](https://protomaps.github.io/sdf-glyph-tool/) and select your file. Wait for the progress bar to complete and download your ZIP. @@ -14,21 +12,9 @@ Go to the web app at [protomaps.github.io/sdf-glyph-tool/](https://protomaps.git You don't need to install anything to create SDF fonts, just use the page above. -If you want to compile the WebAssembly components from scratch, you'll need the following: - -* The [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html) installed and activated on your machine (`emcc` on your path) -* A [boost](https://www.boost.org) installation on your machine - -Clone this repository and all submodules with `git clone --recursive` - -Use `./build.sh PATH_TO_INCLUDE_DIR` to build the WASM output, where `PATH_TO_INCLUDE_DIR` is the directory of your local Boost install. - ## Variants By specifying a font file you can control which variants are used for these scripts: * Cyriac (Eastern/Western/Estrangela) * Han (kr/hk/cn/tw/jp/vn) - -## TODO -* Combine multiple font files