Get font name - At runtime

No, I mean define the function in the lv_font.h header.

Not just the signature.

Defining a complex function like that in the header file is not very clean (it would be inefficient to inline).

In my opinion, optionally enabling the font map and registering the fonts in lv_init is the best solution.

I also like this approach. Built-in fonts are added automatically but the user can still add his own fonts manually.

@kisvegabor YOU NEVER LIKE MY APPROACHS! SUPER RAGE! :rofl:

We always agree with @embeddedt to strengthen each other :laughing:
Of course, just joking. However, @embeddedt knows LittlevGL just like me, and we have quite the same mindset. Therefore we usually agree. :slight_smile:

But seriously speaking, I really don’t see any reason the inline this function.

The damage is done, blood feud begun, and I told me mom.

(FOr the record all was in jest)

I’m curious to hear your mother’s opinion. Contribution is always welcome. :smiley:

1 Like