Bug 9391

Summary: setfont doesn't accept font files larger than 32 KiB
Product: Busybox Reporter: Alex Henrie <alexhenrie24>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: [PATCH] loadfont: accept fonts up to 64 KiB in size

Description Alex Henrie 2016-10-31 15:34:58 UTC
Created attachment 6791 [details]
[PATCH] loadfont: accept fonts up to 64 KiB in size

The #1 use case of the `setfont` command is for users with HiDPI screens to switch to a larger, more readable font. However, these larger fonts are often larger than 32 KiB, and BusyBox's setfont won't load any font larger than 32 KiB. For example, `setfont latarcyrheb-sun32` results in the cryptic error message "setfont: input file: bad length".

The attached patch raises the limit to 64 KiB. I sent this patch to the mailing list a week ago, but it was ignored: http://lists.busybox.net/pipermail/busybox/2016-October/084849.html
Comment 1 Alex Henrie 2016-11-03 20:09:39 UTC
Fixed by https://git.busybox.net/busybox/commit/?id=2b288236e80938d29324072a823f46861bd07cd3

Thank you Denys!