All Projects → lvgl → lv_lib_freetype

lvgl / lv_lib_freetype

Licence: MIT license
Interface to FreeType to generate font bitmaps run time

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to lv lib freetype

FontRegister
FontRegister is a small Windows utility to install fonts and/or repair the font registry via commandline.
Stars: ✭ 17 (-58.54%)
Mutual labels:  font, ttf
Haack
Hæck
Stars: ✭ 142 (+246.34%)
Mutual labels:  font, ttf
Zpix Pixel Font
Zpix (最像素) is a pixel font supporting English, Traditional Chinese, Simplified Chinese and Japanese.
Stars: ✭ 916 (+2134.15%)
Mutual labels:  font, ttf
Crimson
The Crimson Text typeface
Stars: ✭ 439 (+970.73%)
Mutual labels:  font, ttf
fontagon
Fontagon is a great tool that easily converts svg into icon font. Fontagon-cli allows faster conversion to commands.
Stars: ✭ 18 (-56.1%)
Mutual labels:  font, ttf
Last Resort Font
Last Resort Font
Stars: ✭ 462 (+1026.83%)
Mutual labels:  font, ttf
Php Font Lib
A library to read, parse, export and make subsets of different types of font files.
Stars: ✭ 1,530 (+3631.71%)
Mutual labels:  font, ttf
font-v
Font version string reporting and modification library + executable tool
Stars: ✭ 15 (-63.41%)
Mutual labels:  font, ttf
Hack
A typeface designed for source code
Stars: ✭ 14,543 (+35370.73%)
Mutual labels:  font, ttf
Webfont
Awesome generator of webfont
Stars: ✭ 170 (+314.63%)
Mutual labels:  font, ttf
fontfacegen-webpack-plugin
A plugin for webpack that allows you to convert .ttf and .otf files into various other font formats such as .eot, .ttf, .svg, .woff and .woff2 using the existing NPM package fontfacegen.
Stars: ✭ 20 (-51.22%)
Mutual labels:  font, ttf
Typography
C# Font Reader (TrueType / OpenType / OpenFont / CFF / woff / woff2) , Glyphs Layout and Rendering
Stars: ✭ 246 (+500%)
Mutual labels:  font, ttf
lv utils
Convert images or system fonts to C arrays. Written for LVGL embedded GUI library
Stars: ✭ 46 (+12.2%)
Mutual labels:  font, lvgl
Codeface
Typefaces for source code beautification
Stars: ✭ 5,612 (+13587.8%)
Mutual labels:  font, ttf
FanWunMing
A Simplified-Chinese-to-Traditional-Chinese font based on GenYoMin, which can handle the one-to-many problem | 繁媛明朝是基於源樣明體開發的簡轉繁字型,能處理一簡對多繁
Stars: ✭ 128 (+212.2%)
Mutual labels:  font, ttf
Mikhak
simple monoline Arabic-Latin semi handwriting typeface
Stars: ✭ 64 (+56.1%)
Mutual labels:  font, ttf
Acy-Font
自制手写字体。A hand-writing font set.
Stars: ✭ 20 (-51.22%)
Mutual labels:  font, ttf
MaterialDesign-Font
Distribution Repo for the TTF font
Stars: ✭ 102 (+148.78%)
Mutual labels:  font, ttf
Svgtofont
Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
Stars: ✭ 149 (+263.41%)
Mutual labels:  font, ttf
Neodgm
Modern TrueType font based on an old-but-good Korean bitmap font.
Stars: ✭ 230 (+460.98%)
Mutual labels:  font, ttf

FreeType integration with LVGL

This repository is merged into the lvgl repository. See https://docs.lvgl.io/master/libs/freetype.html

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 in LVGL

To enable cache, setLV_USE_FT_CACHE_MANAGER 1in lv_freetype.h.

  /*Init freetype library
   *Cache max 64 faces and 1 size*/
  lv_freetype_init(64, 1, 0);

  /*Create a font*/
  static lv_ft_info_t info;
  info.name = "./lv_lib_freetype/arial.ttf";
  info.weight = 16;
  info.style = FT_FONT_STYLE_NORMAL;
  lv_ft_font_init(&info);

  /*Create style with the new font*/
  static lv_style_t style;
  lv_style_init(&style);
  lv_style_set_text_font(&style, info.font);

  /*Create a label with the new style*/
  lv_obj_t * label = lv_label_create(lv_scr_act());
  lv_obj_add_style(label, &style, 0);
  lv_label_set_text(label, "Hello world");

Learn more

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].