chore(freetype): remove freetype sbit cache (#5115)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -10,10 +10,13 @@ Add FreeType to your project
|
||||
|
||||
First, Download FreeType from `here <https://sourceforge.net/projects/freetype/files/>`__.
|
||||
|
||||
There are two ways to use FreeType: ### For UNIX For UNIX systems, it is
|
||||
recommended to use the way of compiling and installing libraries. -
|
||||
Enter the FreeType source code directory.
|
||||
There are two ways to use FreeType:
|
||||
|
||||
For UNIX
|
||||
~~~~~~~~
|
||||
|
||||
For UNIX systems, it is recommended to use the way of compiling and installing libraries.
|
||||
- Enter the FreeType source code directory.
|
||||
- ``make``
|
||||
- ``sudo make install``
|
||||
- Add include path: ``/usr/include/freetype2`` (for GCC: ``-I/usr/include/freetype2 -L/usr/local/lib``)
|
||||
@@ -65,10 +68,6 @@ Cache configuration:
|
||||
- :c:macro:`LV_FREETYPE_CACHE_FT_FACES`: Maximum open number of ``FT_Face`` objects.
|
||||
- :c:macro:`LV_FREETYPE_CACHE_FT_SIZES`: Maximum open number of ``FT_Size`` objects.
|
||||
|
||||
When you are sure that all the used font sizes will not be greater than
|
||||
256, you can enable :c:macro:`LV_FREETYPE_SBIT_CACHE`, which is much more
|
||||
memory efficient for small bitmaps.
|
||||
|
||||
By default, 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.
|
||||
|
||||
Reference in New Issue
Block a user