Comments (7)
Hi,
The new version of LittlevGL will support UTF-8. I just released a beta version of it.
See lvgl/beta, misc/beta, utils/beta
Keep in mind this is major release so it is not compatible with v4.2. So the first thing is to update your misc_conf.h
from misc_conf_templ.h
and enable TXT_UTF8
Also update your lv_conf.h
So how to use UTF-8 chacters:
- Generate an fnt and png file with BMFont (It doesn't changed) (http://www.gl.littlev.hu/font-import)
- Use the fnt2c.py from utils/beta: `python fnt2c.py -f my_example -s first_uncode_id -e last_unicode_id
- Copy the generated files into your project and enable the new font in misc_conf.h:
#define USE_FONT_MY_EXAMPLE 1
- Use the font in a style:
style.text.font = &font_my_example
(include my_example.h too) - You can create a "font pack" with
font_add(&font_base, &font_extension)
This way you have to set font_base as font, but the library will look for letter maps in the added fonts too.
Still there are no documentation about the new version but it is mainly compatible with the old except the styles and some function names.
Do not hesitate to ask me if something doesn't work.
from lvgl.
I used your new lvgl/beta and misc/beta in "lv_proj_pc_v4_2_0" project,build successful but runing tft simulator is blank,why?
1,I download the code is lvgl-beta.zip and misc-beta.zip,from your github.
2,removed the files in "lv_pro_pc_v4_2_0/misc/" and "lv_pro_pc_v4_2_0/lvgl/"
3,unzip lvgl-beta.zip and misc-beta.zip to lv_pro_pc_v4_2_0/misc/ and lv_pro_pc_v4_2_0/lvgl/.
4.make new lv_conf.h and misc_conf.h. and masked //#if 0 //#endif"
5.make main.c, the code is
"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include "hw/hw.h"
#include "misc/misc.h"
#include "misc/os/ptask.h"
#include "lvgl/lvgl.h"
//#include "lvgl/lv_app/lv_app_util/lv_app_notice.h"
int main (void)
{
/Initialization/
misc_init();
per_init();
dev_init();
lv_init();
lv_obj_t * label = lv_label_create(lv_scr_act(), NULL);
while(1) {
/* Periodically call the ptask handler.
* It could be done in a timer interrupt or an OS task too.*/
ptask_handler();
usleep(5000);
}
return 0;
"
6,build success,but running is blank,how can i do? thank you!
from lvgl.
Please, use proj_pc/beta
.
Because HAL is integrated into LittlevGL, in v.5.0 you have to initialize it by setting up an lv_disp_drv_t
structure. It needs the same functions (disp_map, disp_fill) like hal
before.
You also have to call lv_tick_handler()
in every millisecond.
from lvgl.
the v5 is unfinished? many of function can not to use. and i found of main.c/116(" indev_drv.name = "Mouse";") has a problem, i correct lv_hal_indev.h/lv_indev_drv_t(add uint8_t *name).
from lvgl.
No, it is still under development.
Now there are 3 relevant branches: master (previous v4.2), beta (v5.0 "preview"), dev-5.0 (for development) In proj_pc you find the same beanches with a working initialization. Please refer to it. ("name" was intentionally removed from lv_disp_drv_t)
So v5.0 is not stable yet. I hope it will be in one or two weeks.
from lvgl.
The good thing is the last major improvement was implemented yedterday . It was integrating misc, lvgl and hw into 1 repo.
Only some minor renames and testing remains.
from lvgl.
Hi,
v5.0.0 is released now with Unicode support. Please check the Documentation
from lvgl.
Related Issues (20)
- lv_event_get_target(e) is a void method visual studio simulator HOT 1
- Missing header file lfs.h HOT 1
- Compilation error for FATFS HOT 6
- Unable to change new PNG picture on loop HOT 4
- Core panic'ed lv_slider_set_value 8.4 HOT 4
- lv_label_set_text_fmt formats certain doubles wrong HOT 1
- Unable to load image from SD card - text file loads fine with `lv_fs_read` HOT 2
- LVGL Docs Page Broken For Older Versions HOT 1
- In the master branch, sliding the interface on the edge will cause lvgl to get stuck and cannot be operated anymore HOT 2
- Strange behavior ans crash with use of tabview HOT 1
- Add back CONFIG_LV_COLOR_16_SWAP HOT 5
- Progress bar is rendering incorrectly. HOT 6
- Documentation examples do not load in Chrome OSX when selected branch is master HOT 2
- Cannot rotate image when loaded line by line HOT 1
- https://docs.lvgl.io/8.3/ (and all prior to 9.1) link leads to 404 HOT 10
- snapshot question HOT 3
- Incorrect Relative Path for Including lvgl.h in lv_rnd_unicodes.h HOT 1
- Copying buffers when using DIRECT and double buffering. HOT 5
- corners of bg_image are not clipped in objects HOT 6
- LV_EVENT_CLICKED not generated when it is supposed to be. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.