Increase font size for some devices.

This commit is contained in:
fewtarius 2023-10-19 12:10:18 +00:00
parent 800ad14a64
commit 78d394e5a5
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

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" ]