Lines Matching full:a
2 .. |Aacute| unicode:: U+000C1 .. LATIN CAPITAL LETTER A WITH ACUTE
16 to render images of individual letters (glyph). A font is stored in a
17 :cpp:type:`lv_font_t` variable and can be set in a style's *text_font* field.
22 lv_style_set_text_font(&my_style, &lv_font_montserrat_28); /* Set a larger font */
24 Fonts have a **format** property. It describes how the glyph data is stored.
40 The **format** property also affects the amount of memory needed to store a
41 font. For example, ``format = LV_FONT_GLYPH_FORMAT_A4`` makes a font nearly four
61 If all works well, a '\ |check|\ ' character should be displayed.
82 into a base letter and diacritics (e.g. ``u`` + |uml|).
84 Complex languages where subsequent characters combine into a single glyph
125 - :c:macro:`LV_FONT_MONTSERRAT_28_COMPRESSED`: Same as normal 28 px font but stored as a :ref:`fon…
132 :cpp:var:`lv_font_montserrat_16` for a 16 px height font. To use them in a
133 style, just add a pointer to a font variable like this:
178 Most languages use a Left-to-Right (LTR for short) writing direction,
182 LVGL not only supports RTL text but supports mixed (a.k.a.
187 BiDi support is enabled by setting :c:macro:`LV_USE_BIDI` to a non-zero value in ``lv_conf.h``.
189 All text has a base direction (LTR or RTL) which determines some
192 a general property which can be set for every Widget. If not set then it
194 base direction of a screen and its child Widgets will inherit it.
200 To set a Widget's base direction use :cpp:expr:`lv_obj_set_style_base_dir(widget, base_dir, selecto…
222 the *form* of a character depends on its position in the text. A
251 recommended to compress only the largest fonts of a user interface,
279 Adding a New Font
282 There are several ways to add a new font to your project:
291 fonts (Montserrat font and symbols) but in a different size and/or
296 To declare a font in a file, use :cpp:expr:`LV_FONT_DECLARE(my_font_name)`.
308 1. Search for a symbol on https://fontawesome.com. For example the
326 For ``0xf287`` the *Hex UTF-8 bytes* are ``EF 8A 87``.
327 2. Create a ``#define`` string from the UTF8 values: ``#define MY_USB_SYMBOL "\xEF\x8A\x87"``
328 3. Create a label and set the text. Eg. :cpp:expr:`lv_label_set_text(label, MY_USB_SYMBOL)`
338 Loading a Font at Run-Time
341 :cpp:func:`lv_binfont_create` can be used to load a font from a file. The font needs
342 to have a special binary format. (Not TTF or WOFF). Use
346 :note: To load a font :ref:`LVGL's filesystem <overview_file_system>`
347 needs to be enabled and a driver must be added.
363 Loading a Font from a Memory Buffer at Run-Time
366 :cpp:func:`lv_binfont_create_from_buffer` can be used to load a font from a memory buffer.
367 This function may be useful to load a font from an external file system, which is not
368 supported by LVGL. The font needs to be in the same format as if it were loaded from a file.
370 :note: To load a font from a buffer :ref:`LVGL's filesystem <overview_file_system>`
393 Using a BDF Font
396 Small displays with low resolution don't look pretty with automatically rendered fonts. A bitmap fo…
397 the solution, but it's necessary to convert the bitmap font (BDF) to a TTF.
406 the embedded bitmap but it also needs the outlines. One might think you can use a fake MS Bitmap
449 Example for a 12px font
465 To create a font for LVGL:
471 :note: use 1-bpp because we don't use anti-aliasing. It doesn't look sharp on displays with a low r…
475 Adding a New Font Engine
484 To add a new font engine, a custom :cpp:type:`lv_font_t` variable needs to be created:
488 /* Describe the properties of a font */
490 my_font.get_glyph_dsc = my_get_glyph_dsc_cb; /* Set a callback to get info about glyphs */
491 my_font.get_glyph_bitmap = my_get_glyph_bitmap_cb; /* Set a callback to get bitmap of a glyph */
526 /* The bitmap should be a continuous bitstream where
537 If the font in use does not have a glyph needed in a text-rendering task, you can
538 specify a ``fallback`` font to be used in :cpp:type:`lv_font_t`.