@@ -6,7 +6,7 @@ A PC utility for converting industry standard font files to Python source code.
6
6
7
7
1 . [ Introdction] ( ./FONT_TO_PY.md#1-introduction ) Creating Python fonts.
8
8
1.1 [ Revision history] ( ./FONT_TO_PY.md#11-revision-history )
9
- 2 . [ Dependencies ] ( ./FONT_TO_PY.md#2-dependencies ) Installation.
9
+ 2 . [ Installation ] ( ./FONT_TO_PY.md#2-installation )
10
10
3 . [ Usage] ( ./FONT_TO_PY.md#3-usage )
11
11
3.1 [ Arguments] ( ./FONT_TO_PY.md#31-arguments )
12
12
  ;  ;  ;  ;  ; 3.1.1 [ Mandatory positional arguments] ( ./FONT_TO_PY.md#311-mandatory-positional-arguments )
@@ -34,10 +34,14 @@ alternative which is a random access binary file on the filesystem.
34
34
The format of the Python font file is designed to save large amounts of RAM on
35
35
resource-limited targets: the font file may be incorporated into a firmware
36
36
build such that it occupies flash memory rather than scarce RAM. Python code
37
- built into firmware is known as frozen bytecode.
37
+ built into firmware is known as frozen bytecode. An alternative is
38
+ [ romfs] ( https://docs.micropython.org/en/latest/reference/mpremote.html#mpremote-command-romfs ) .
39
+ This achieves the same RAM efficiency as frozen bytecode without the need to
40
+ recompile.
38
41
39
42
## 1.1 Revision history
40
43
44
+ 28 May 2025 V0.42.2 Publish to PyPi, update docs.
41
45
22 Mar 2024 V0.42 Default mapping is now horizontal.
42
46
30 Jan 2023 V0.41 With thanks to @ferrolive (Igor Oliveira) who supplied the
43
47
charset file.
@@ -69,14 +73,12 @@ API is unchanged.
69
73
###### [ Main README] ( ./README.md )
70
74
###### [ Contents] ( ./FONT_TO_PY.md#0-contents )
71
75
72
- # 2. Dependencies
76
+ # 2. Installation
73
77
74
- The utility requires Python 3.2 or greater, also [ freetype-py] ( https://github.com/rougier/freetype-py ) which may be
75
- installed using ` pip3 ` . On Linux (you may need a root prompt):
78
+ The utility requires Python 3.6 or greater. It is installed using pip:
76
79
77
80
``` shell
78
- # apt-get install python3-pip
79
- # pip install freetype-py
81
+ $ pip install font_to_py
80
82
```
81
83
82
84
# 3. Usage
@@ -302,7 +304,8 @@ The `foo()` function emulates the behaviour of a device driver in rendering a
302
304
character to a display. The local variables constitute memory which is
303
305
reclaimed on exit from the function. Its additional RAM use was 16 bytes.
304
306
305
- Similar figures were found in recent (2019) testing on a Pyboard D.
307
+ Similar figures were found in testing on a Pyboard D. Also using ` romfs ` instead
308
+ of freezing bytecode.
306
309
307
310
## Conclusion
308
311
0 commit comments