Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress fonts down to 50-70% and speed-up LCD prints ?? #39

Open
eltomjan opened this issue Mar 13, 2024 · 2 comments
Open

Compress fonts down to 50-70% and speed-up LCD prints ?? #39

eltomjan opened this issue Mar 13, 2024 · 2 comments

Comments

@eltomjan
Copy link

eltomjan commented Mar 13, 2024

What do you think about XOR compression ?

Real font example with graphics in comments (v1, now there is improved v2).
https://github.com/eltomjan/ETEhomeTools/blob/master/ArduinoSimulator/Font_big.h
PR for original LCD
adafruit/Adafruit_ILI9340#19
Here graphical demo showing these blocks inside real font
https://eltomjan.github.io/JStoolsSPAdemos/FontPacker/webLog.htm

Log created by a demo C processing text font https://github.com/eltomjan/ETEhomeTools/tree/master/TextFontPackerDemo

I can create PR, but page is quite complex and not sure if there are any "global" changes already ?
Also do not know where to add it to UI - options could be checkbox(-es), new buttons, auto import of packed/plain, etc. ?

PC simulation
https://github.com/eltomjan/ETEhomeTools/tree/master/ArduinoSimulator

Old C# packer to generate fonts (now updated to improved v2)
https://github.com/eltomjan/ETEhomeTools/tree/master/CSharp/GFXpack

Some older generator / list of compression results
https://github.com/eltomjan/ETEhomeTools/blob/02c368e44a83ed0c4cb7ae59315b8c681f98fe11/gfxXorPacker.cpp#L332

@eltomjan eltomjan changed the title 1/3 - 1/2 size option ?? Compression to 1/3 - 1/2 ?? Mar 13, 2024
@eltomjan eltomjan changed the title Compression to 1/3 - 1/2 ?? Compress fonts to 50-70% ?? Mar 13, 2024
@eltomjan eltomjan changed the title Compress fonts to 50-70% ?? Compress fonts down to 50-70% and speed-up LCD prints ?? Mar 13, 2024
@tchapi
Copy link
Owner

tchapi commented Mar 14, 2024

Hi @eltomjan and thanks for the issue

I need to get my head around what you propose, which is not easy as I'm not versed into XOR compression. I have limited bandwidth right now.

About the UI: a simple checkbox when exporting would do, if you get motivated to propose a PR?

@eltomjan
Copy link
Author

eltomjan commented Mar 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants