You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch to using PNG fonts, add support for more font pages (#138)
* add libspng 0.7.3
* working PNG support
* cleanup
* split font code into own file
* add font converter
* swap to PNG fonts
* swap ipk to contain png
* builds
* Fix comparison error
* bump version for testing
* Rework font loading:
- No longer require whitelist of fonts; take FC identifier and use that directly. Avoids needing to release a version to support a new FC; users could put fonts on an SD and away they go.
- Also, to support the above - fall back to default font variant if no FC specific variant found (previously impossible as we bundled a font for all supported FCs)
- Support fallback to bf as a font name; betaflight uses BTFL as it's identifier; we used bf in it's font filenames previously
* debugs
* convert quicksilver font
* Switch to sneaky europa and switch to preferred font names (fc identifier for bf/ultra - btfl/ultr)
* Add fallback for ultra
* Fix comparisons
* reorder font loading - /blackbox before the bundled fonts; means you can put fonts (via adb push) into /blackbox and then not need to worry about putting them on SD
* font convert debugging + load order amend so BTFL/ULTR fallback works
* Fix infinite reloading of fonts caused by lowercasing the FC variant
* Fix debug
* latest ver of sneakyfpv fonts
* update ardu and generic font
* revert accidental gtar
* revise fonts section in readme
* Remove -dev from version ahead of release
---------
Co-authored-by: bri3d <brian@brianledbetter.com>
Copy file name to clipboardExpand all lines: README.md
+14-31
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ A diagram to help...
102
102
103
103
Visit https://fpv.wtf/package/fpv-wtf/msp-osd with your goggles connected, and check "Fake HD"
104
104
105
-
Optionally, place custom fonts in the root of your sd card, using the names `font_bf_hd.bin` / `font_bf_hd_2.bin` (NB: FakeHD no longer uses font_hd.bin / font_hd_2.bin)
105
+
Optionally, place custom fonts in the root of your sd card, using the names `font_bf_hd.png`
106
106
107
107
Configuration of the grid is also possible; see below.
108
108
@@ -220,53 +220,36 @@ Configure the UART under Digital VTX - see https://docs.bosshobby.com/Configurin
220
220
221
221
## Fonts
222
222
223
-
We bundle in default fonts for the flight controller variants we support. [Preview images are available here](docs/fonts). Or you can use a custom one...
223
+
We bundle in default fonts for Betaflight, Ardupilot, INAV, Quicksilver, and KISS ULTRA (font is SNEAKYFPV's Europa - thanks to SNEAKYFPV for allowing us to use these - https://sites.google.com/view/sneaky-fpv/home). Since 0.12 we use a PNG font format, the same as Walksnail. [Default fonts can be viewed here](fonts). You may also upload your own fonts to the SD card.
224
224
225
225
* Download a font package. See below for known community fonts.
226
-
* Rename the files for your desired font to `font_<fc variant>` - see table below for examples or take a look at the `fonts` directory for a template for how the file names should look. (If your FC firmware is not listed below, use the generic filenames)
227
-
* Place these four files on the root of your Goggles SD card.
226
+
* Rename the files for your desired font to `font_<fc variant>.png` - see table below for examples or take a look at the `fonts` directory for a template for how the file names should look. (If your FC firmware is not listed below, use the generic filenames)
227
+
* Place these two PNG files on the root of your Goggles SD card.
VTx (AU/Vista) which have not had their msp-osd upgraded, as well as flight controllers which do not respond to the Variant request, like old Ardupilot versions, will fall back to the Generic/Fallback font.
241
+
Airside VTx (AU/Vista) which have a very old version of msp-osd on, as well as flight controllers which do not respond to the Variant request, like old Ardupilot versions, will fall back to the Generic/Fallback font.
242
+
243
+
You can also add fonts for firmwares not in this list; using the generic filename, or put the MSP identifier in (lower case it) the filename - ```font_<fc_variant>.png / font_<fc_variant>_hd.png```
0 commit comments