Merge pull request #2223 from fewtarius/dev

Increase font size for some devices.
This commit is contained in:
fewtarius 2023-10-19 08:10:58 -04:00 committed by GitHub
commit 04075a8a23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -428,10 +428,10 @@ set_consolefont() {
progress "Set console font"
if [ -e /dev/fb0 ]; then
hres="$(fbset 2>/dev/null | awk '/geometry/ { print $2 }')"
if [ "${hres}" -gt "0" ] && [ "${hres}" -le "640" ]
if [ "${hres}" -gt "0" ] && [ "${hres}" -le "480" ]
then
setfont -C /dev/console spleen-5x8.psfu
elif [ "${hres}" -ge "641" ] && [ "${hres}" -le "720" ]
elif [ "${hres}" -gt "480" ] && [ "${hres}" -le "720" ]
then
setfont -C /dev/console spleen-6x12.psfu
elif [ "${hres}" -gt "720" ] && [ "${hres}" -lt "1080" ]