Giter VIP home page Giter VIP logo

Comments (5)

trivij avatar trivij commented on June 21, 2024

use BlynkGO is the best!

from lvgl.

liamHowatt avatar liamHowatt commented on June 21, 2024

Thanks for the tip @trivij!

@jeremyvirtue, which font were you seeing the issues with?

cc @BlynkGO (they participate here sometimes)

Regarding BlynkGO, I tried this:
https://github.com/BlynkGO/BlynkGO_font/blob/master/Eng-Thai/ThaiSansNeue/ThaiSansNeue_Bold_25.c
and it looks correct at first sight but I am not familiar with the language.

image

I simply downloaded the C file, added it to my build files, and made this change

diff --git a/../../Downloads/ThaiSansNeue_Bold_25.c b/../lvgl_workspace/ThaiSansNeue_Bold_25.c
index 49716e5b3..f3034a328 100644
--- a/../../Downloads/ThaiSansNeue_Bold_25.c
+++ b/../lvgl_workspace/ThaiSansNeue_Bold_25.c
@@ -4,7 +4,11 @@
  * Opts: --bpp 4 --size 25 --no-compress --font ThaiSansNeue-Bold_modified.ttf --range 32-126,161-255,3584-3675,8192-8805,63232-63632 --format lvgl -o ThaiSansNeue_Bold_25.c
  ******************************************************************************/
 
-#include "blynkgo_lib.h"
+#ifdef LV_LVGL_H_INCLUDE_SIMPLE
+    #include "lvgl.h"
+#else
+    #include "lvgl/lvgl.h"
+#endif
 
 #ifndef THAISANSNEUE_BOLD_25
 #define THAISANSNEUE_BOLD_25 1

And then used it like so:

static void thai_font_blynkgo()
{
    LV_FONT_DECLARE(ThaiSansNeue_Bold_25);
    lv_obj_t * label = lv_label_create(lv_screen_active());
    lv_obj_set_style_text_font(label, &ThaiSansNeue_Bold_25, 0);
    lv_label_set_text(label, "วิธีการใช้งาน");
}

I also tried arluck_25.c but had a less satisfying result.

from lvgl.

jeremyvirtue avatar jeremyvirtue commented on June 21, 2024
blynkgo_lib

I try to understand,But do you have to use BlynkGO OS for this solution?Can we try to isolate it?

from lvgl.

liamHowatt avatar liamHowatt commented on June 21, 2024

I didn't use BlynkGO OS. Please read my comment again 🙂

I simply downloaded the C file, added it to my build files, and made this change

from lvgl.

lvgl-bot avatar lvgl-bot commented on June 21, 2024

We need some feedback on this issue.

Now we mark this as "stale" because there was no activity here for 14 days.

Remove the "stale" label or comment else this will be closed in 7 days.

from lvgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.