Any ideas how to place more locale labels on screen? There is a room for 4 locales, what if I want to add 5th or 6th?
Latest posts made by Sv2k
-
RE: PanelDue font header format change proposal
-
RE: PanelDue font header format change proposal
Proof-of-concept implementation of non-continuous unicode fonts for PanelDue. In this patch I added Russian alphabet (Unicode characters from 1040 (0x0410) to 1103 (0x044F)) to the glcd28x32 font. I used the same Liberation Sans font (Windows size 22) and it looks great. I replaced Control button label with first and last chars from second font range and it works okay.
Firmware size is still acceptable (~101kb) so I can make a full Russian locale now.
-
RE: PanelDue firmware size
I needed this more than you
btw: I didn't check it with small screens, but it seems to be fine with 5" panel (width 800px)
-
PanelDue font header format change proposal
Current header:
extern const uint8_t glcd28x32[] =
{
28, // character width in pixels
32, // row height in pixels
3, // space columns between characters before kerning
0x20, // first character code
0xFF, // last character codeProposal:
extern const uint8_t glcd28x32[] =
{
28, // character width in pixels
32, // row height in pixels
3, // space columns between characters before kerning
2, // character ranges (1-255)
0x20, 0x00, // first character code (16-bit little-endian value, range 1)
0xFF, 0x00, // last character code (16-bit little-endian value, range 1)
0x10, 0x04, // first character code (16-bit little-endian value, range 2)
0x4F, 0x04, // last character code (16-bit little-endian value, range 2)Offset of first character is (number of ranges)*4 + 4.
The goal of this proposal is to enable more locales (cyrillic, eastern, etc) but save flash memory by not including complete unicode fonts, only certain ranges
-
RE: PanelDue firmware size
BTW switching to the dark palette is not implemented yet.
Actually I'm more interested in adding non-latin characters to the fonts to add more locales…
-
RE: PanelDue firmware size
So build for 5" panel is only 94kb now, much more room left for my evil plans!
11.06.2017 01:58 96Â 832 PanelDueFirmware.bin
11.06.2017 01:55 253Â 532 PanelDueFirmware.elf
11.06.2017 01:55 272Â 421 PanelDueFirmware.hex
11.06.2017 01:55 257Â 344 PanelDueFirmware.map -
RE: PanelDue firmware size
Looks like using palette is great idea, I'll try to implement it and post the results.
-
PanelDue firmware size
Since firmware size for large screens (5" or 7") is already very close to MCU flash size are there any plans to optimize it? It looks like icons and font take more than 70kb of the flash. Storing icons using some kind of compression may help, something very simple, RLE or similar. If I try to implement it are you interested to merge?