lvgl / lv_utils

Convert images or system fonts to C arrays. Written for LVGL embedded GUI library
https://littlevgl.com
54 stars 38 forks source link

LV_ATTRIBUTE_MEM_ALIGN in font converter #18

Closed embeddedt closed 5 years ago

embeddedt commented 5 years ago

https://github.com/littlevgl/lv_utils/blob/bb8954ed13822c50ce6545112d1e40bdbb57fc3a/font_conv_core.php#L212

Do we need the LV_ATTRIBUTE_MEM_ALIGN attribute here as well?

kisvegabor commented 5 years ago

Good question, but I think it's not required.

Mis-aligned memories caused an issue when they were passed to a periphery (such as DMA) which expected aligned memory. The glyphs are processed byte-by-byte (or even bit-by-bit) in the library and never passed to hardware.

embeddedt commented 5 years ago

@kisvegabor Thanks for the clarification!