• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

fonts/11-Mar-2024-

src/11-Mar-2024-5438

CMakeLists.txtD11-Mar-2024411 138

README.rstD11-Mar-20241 KiB4028

prj.confD11-Mar-2024131 74

sample.yamlD11-Mar-2024219 109

README.rst

1.. _cfb_custom_fonts:
2
3Custom Fonts
4############
5
6Overview
7********
8A simple example showing how to generate Character Framebuffer (CFB)
9font headers automatically at build time.
10
11This example generates a font with font elements for 6 sided dice from
12a PNG image, and then uses the generated header (``cfb_font_dice.h``)
13to show the font elements on the display of a supported board.
14
15The source code for this sample application can be found at:
16:zephyr_file:`samples/subsys/display/cfb_custom_font`.
17
18Building and Running
19********************
20
21There are different configuration files in the cfb_custom_font
22directory:
23
24- :file:`prj.conf`
25  Generic config file, normally you should use this.
26
27- :file:`boards/reel_board.conf`
28  This overlay config enables support for SSD16XX display controller
29  on the reel_board.
30
31
32Example building for the reel_board with SSD16XX display support:
33
34.. zephyr-app-commands::
35   :zephyr-app: samples/subsys/display/cfb_custom_font
36   :host-os: unix
37   :board: reel_board
38   :goals: flash
39   :compact:
40