Search Forum.. 

Custom Fonts / Gliphs / Icons

I have the 1.8" color OLED module and wanted to leverage speed of local fonts to install my icons.  It is possible to install custom icons / font characters that are multi-color?


RE:Custom Fonts / Gliphs / Icons

 The fonts data structure can't store color information, but you can use draw image function to draw color image.

RE:Custom Fonts / Gliphs / Icons

You can also create one font character for each colour plane and "or" together a number of them.

See this thread and the tools they were using.


RE:Custom Fonts / Gliphs / Icons

I actually make use of user fonts and command sets to draw "sprites" and other graphical objects on my OLED displays.

I place my fonts in MCU flash memory and after the fonts, I add command sets to do the proper setups, like setting the font, the foreground and background colors, drawing mode, etc. I also have command sets to draw "strings" of characters, which are graphics from my custom fonts.

You can change colors between outputting characters, and there are commands to move the starting postion relative to where it currently is, so you can draw over previous outputs. I do at times arrange my font images to 3 bitmaps plus one mask. I mask out the area first, then draw 3 times in the same spot, the 3 bitmaps, changing the foreground color from red, to green, to blue.

Copyright Digole Digital Solutions, 2008-2022. All rights reserved.
Powered by Digole