@basementuniverse/image-font 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -221,3 +221,9 @@ type ImageFontRenderingOptions = {
|
|
|
221
221
|
baseLine?: 'top' | 'middle' | 'bottom';
|
|
222
222
|
};
|
|
223
223
|
```
|
|
224
|
+
|
|
225
|
+
## Utility script
|
|
226
|
+
|
|
227
|
+
It can be rather tedious creating data for large image-fonts with lots of characters, so I vibe-coded a quick-n-hacky utility script to help with that in './example/generate-data.html'.
|
|
228
|
+
|
|
229
|
+
You will need to run this using [http-server](https://www.npmjs.com/package/http-server) or a similar tool to serve the HTML file, because it loads images and renders/processes them using a canvas; your browser will complain about this if you open the HTML file directly.
|
package/package.json
CHANGED