Skip to content

Commit 3ec51eb

Browse files
committed
More README
1 parent 76ec5ac commit 3ec51eb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,18 @@ label = Label(font=MONO_9, text="Hi Mom!")
2828
* Add a reuse-recognized `.license` file for it
2929
* Add it to the `[FONTS]` section of `config.toml`
3030

31-
Presently all fonts are genreated at the same range of sizes, `SIZES` in `config.toml`.
31+
Presently all fonts are generated at the same range of sizes, `SIZES` in `config.toml`. This restriction could be lifted if it's for a good reason.
3232

3333
## Variants
3434

3535
Two variants of each font are generated: The ASCII variant with code points 32-126, and the full variant with all glyphs in the original font. The ASCII variant can be especially useful when flash space is at a premium.
36+
37+
More variants could be added for a good reason; it should be configurable in config.toml and possibly be settable per font.
38+
39+
## Font Sizing
40+
41+
The font sizes in this bundle are in pixels.
42+
Or, to be more technically accurte, they are rendered at a resolution of 1 pixel = 1/72 inch = 1 point.
43+
If you follow the [directions on learn](https://learn.adafruit.com/custom-fonts-for-pyportal-circuitpython-display/use-otf2bdf) your font is rendered at a scale of 1 pixel = 1/100 inch = 0.72 points.
44+
This means the resulting font pixel sizes are 33-40% larger for the Learn guide instructions vs the fonts in this bundle.
45+
In any case, you will likely need to manually test font sizes until you find the best one for your application and display.

0 commit comments

Comments
 (0)