Bug 9391 - setfont doesn't accept font files larger than 32 KiB
Summary: setfont doesn't accept font files larger than 32 KiB
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 15:34 UTC by Alex Henrie
Modified: 2016-11-03 20:09 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
[PATCH] loadfont: accept fonts up to 64 KiB in size (1.27 KB, application/x-download)
2016-10-31 15:34 UTC, Alex Henrie
Details

Note You need to log in before you can comment on or make changes to this bug.
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!