1. The need to understand and use Framebuffer and fix the structure var
2. The need to understand and use to use freetype library
3. Python multi-language transcoding (object code: unicode)
4. The algorithm is as follows painted word
int i = offset_y - top;
int h = bitmap.rows;
int w = bitmap.width;
short color = 0x1E
for (; i < h; i++)
{
for (int j = offset_x; j < w; j++)
{
if (0 != (short)bitmap.buffer[i * bitmap.width + j])
{
*(short *)(fb_buf + i * w * 2 + j * 2) = color;
}
}
}
Run effect diagram:
1) Python transcoding
Multi-Language Table
After transcoding table
2) ARM_Target showing the effects of
Just demo Korean Simplified Chinese Traditional English FB display.