mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-21 06:53:01 +08:00
18f61c5f77
* move png, sjpg, bmp, gif, fs_if to extra/libs * reorganize the examples * update lv_conf_internal.h * fix warnings * add freetype * remove unused assets * add the new libs to build tests * update the docs
1.0 KiB
1.0 KiB
.. include:: /header.rst
:github_url: |github_link_base|/libs/bmp.md
FreeType support
Interface to FreeType to generate font bitmaps run time.
Install FreeType
- Download Freetype from here
make
sudo make install
Add FreeType to your project
- Add include path:
/usr/include/freetype2
(for GCC:-I/usr/include/freetype2 -L/usr/local/lib
) - Add library:
freetype
(for GCC:-L/usr/local/lib -lfreetype
)
Usage
Enable LV_USE_FREETYPE
in lv_conf.h
.
See the examples below.
Note that, the FreeType extension doesn't use LVGL's file system. You can simply pass the path to the font as usual on your operating system or platform.
Learn more
- FreeType tutorial
- LVGL's font interface
API
.. doxygenfile:: lv_freetype.h
:project: lvgl