Lines Matching refs:font
4 A font is stored in a `lv_font_t` variable and can be set in a style's *text_font* field. For examp…
6 lv_style_set_text_font(&my_style, &lv_font_montserrat_28); /*Set a larger font*/
9 …xel)** property. It shows how many bits are used to describe a pixel in a font. The value stored f…
12 …rty also affects the amount of memory needed to store a font. For example, *bpp = 4* makes a font …
32 - `LV_FONT_MONTSERRAT_12` 12 px font
33 - `LV_FONT_MONTSERRAT_14` 14 px font
34 - `LV_FONT_MONTSERRAT_16` 16 px font
35 - `LV_FONT_MONTSERRAT_18` 18 px font
36 - `LV_FONT_MONTSERRAT_20` 20 px font
37 - `LV_FONT_MONTSERRAT_22` 22 px font
38 - `LV_FONT_MONTSERRAT_24` 24 px font
39 - `LV_FONT_MONTSERRAT_26` 26 px font
40 - `LV_FONT_MONTSERRAT_28` 28 px font
41 - `LV_FONT_MONTSERRAT_30` 30 px font
42 - `LV_FONT_MONTSERRAT_32` 32 px font
43 - `LV_FONT_MONTSERRAT_34` 34 px font
44 - `LV_FONT_MONTSERRAT_36` 36 px font
45 - `LV_FONT_MONTSERRAT_38` 38 px font
46 - `LV_FONT_MONTSERRAT_40` 40 px font
47 - `LV_FONT_MONTSERRAT_42` 42 px font
48 - `LV_FONT_MONTSERRAT_44` 44 px font
49 - `LV_FONT_MONTSERRAT_46` 46 px font
50 - `LV_FONT_MONTSERRAT_48` 48 px font
53 - `LV_FONT_MONTSERRAT_12_SUBPX` Same as normal 12 px font but with [subpixel rendering](#subpixel-r…
54 - `LV_FONT_MONTSERRAT_28_COMPRESSED` Same as normal 28 px font but stored as a [compressed font](#c…
55 - `LV_FONT_DEJAVU_16_PERSIAN_HEBREW` 16 px font with normal range + Hebrew, Arabic, Persian letters…
56 - `LV_FONT_SIMSUN_16_CJK`16 px font with normal range plus 1000 of the most common CJK radicals
57 - `LV_FONT_UNSCII_8` 8 px pixel perfect font with only ASCII characters
58 - `LV_FONT_UNSCII_16` 16 px pixel perfect font with only ASCII characters
61 …ike `lv_font_montserrat_16` for a 16 px height font. To use them in a style, just add a pointer to…
63 …n the ASCII characters and use the [Montserrat](https://fonts.google.com/specimen/Montserrat) font.
65 …symbols are also added to the built-in fonts from the [FontAwesome](https://fontawesome.com/) font.
136 - In the command line tool use `--lcd` flag. Note that the generated font needs about three times m…
152 ## Add a new font
154 There are several ways to add a new font to your project:
155 …use the [Online font converter](https://lvgl.io/tools/fontconverter). Just set the parameters, cli…
156 2. Use the [Offline font converter](https://github.com/lvgl/lv_font_conv). (Requires Node.js to be …
157 3. If you want to create something like the built-in fonts (Montserrat font and symbols) but in a d…
160 To declare a font in a file, use `LV_FONT_DECLARE(my_font_name)`.
165 The built-in symbols are created from the [FontAwesome](https://fontawesome.com/) font.
168 2. Open the [Online font converter](https://lvgl.io/tools/fontconverter). Add [FontAwesome.woff](ht…
169 3. Set the parameters such as Name, Size, BPP. You'll use this name to declare and use the font in …
171 5. Convert the font and copy the generated source code to your project. Make sure to compile the .c…
172 6. Declare the font using `extern lv_font_t my_font_name;` or simply use `LV_FONT_DECLARE(my_font_n…
179 …r this symbol in the font defined in `style.text.font` properties. To use the symbol you may need …
181 ## Load a font at run-time
182 `lv_font_load` can be used to load a font from a file. The font needs to have a special binary form…
183 …ub.com/lvgl/lv_font_conv/) with the `--format bin` option to generate an LVGL compatible font file.
185 Note that to load a font [LVGL's filesystem](/overview/file-system) needs to be enabled and a drive…
192 /*Use the font*/
194 /*Free the font if not required anymore*/
199 ## Add a new font engine
201 LVGL's font interface is designed to be very flexible but, even so, you can add your own font engin…
202 …l-time render glyphs from TTF fonts or use an external flash to store the font's bitmap and read t…
208 /*Describe the properties of a font*/
219 /* Get info about glyph of `unicode_letter` in `font` font.
223 bool my_get_glyph_dsc_cb(const lv_font_t * font, lv_font_glyph_dsc_t * dsc_out, uint32_t unicode_le…
241 /* Get the bitmap of `unicode_letter` from `font`. */
242 const uint8_t * my_get_glyph_bitmap_cb(const lv_font_t * font, uint32_t unicode_letter)
253 ## Use font fallback
255 You can specify `fallback` in `lv_font_t` to provide fallback to the font. When the font
256 fails to find glyph to a letter, it will try to let font from `fallback` to handle.
261 /* Roboto font doesn't have support for CJK glyphs */