@basementuniverse/image-font 1.1.0 → 1.1.1
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 +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -248,8 +248,10 @@ type ImageFontRenderingOptions = {
|
|
|
248
248
|
};
|
|
249
249
|
```
|
|
250
250
|
|
|
251
|
-
## Utility
|
|
251
|
+
## Utility scripts
|
|
252
252
|
|
|
253
|
-
It can be rather tedious creating data for large image-fonts with lots of characters, so I vibe-coded a
|
|
253
|
+
It can be rather tedious creating data for large image-fonts with lots of characters, so I vibe-coded a utility script to help with that in './example/generate-data.html'.
|
|
254
254
|
|
|
255
255
|
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.
|
|
256
|
+
|
|
257
|
+
We also have a script './example/rescale.js' which re-scales sizes and offsets in a configuration JSON file by a given factor, which is useful if you want to change the size of an existing font texture atlas without having to manually edit all the values.
|
package/package.json
CHANGED