zephyr/subsys/fb/README_fonts.txt
Anas Nashif 01582f80b7 scripts: move gen_cfb_font_header.py to scripts/build
Move scripts needed by the build system and not designed to be run
individually or standalone into the build subfolder.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2022-07-12 10:03:45 +02:00

20 lines
646 B
Plaintext

The DroidSansMono.ttf font used to generate the cfb_fonts bitmaps can be
obtained from:
https://android.googlesource.com/platform/frameworks/base/+/master/data/fonts/DroidSansMono.ttf
To reproduce the font bitmaps use these commands:
${ZEPHYR_BASE}/scripts/build/gen_cfb_font_header.py \
-i DroidSansMono.ttf \
-x 10 -y 16 -s 14 --center-x \
-o cfbv_1016
${ZEPHYR_BASE}/scripts/build/gen_cfb_font_header.py \
-i DroidSansMono.ttf \
-x 15 -y 24 -s 22 --center-x --y-offset -2 \
-o cfbv_1524
${ZEPHYR_BASE}/scripts/build/gen_cfb_font_header.py \
-i DroidSansMono.ttf \
-x 20 -y 32 -s 30 --center-x --y-offset -3 \
-o cfbv_2032