mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #3765 from HiassofT/le92-console-font
[le9.2] use a larger console font on HiDPI displays
This commit is contained in:
commit
d81cc10a81
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# Busybox version: 1.31.0
|
||||
# Wed Jun 12 00:51:44 2019
|
||||
# Tue Aug 13 17:29:50 2019
|
||||
#
|
||||
CONFIG_HAVE_DOT_CONFIG=y
|
||||
|
||||
@ -365,10 +365,14 @@ CONFIG_CLEAR=y
|
||||
# CONFIG_FGCONSOLE is not set
|
||||
# CONFIG_KBD_MODE is not set
|
||||
# CONFIG_LOADFONT is not set
|
||||
# CONFIG_SETFONT is not set
|
||||
CONFIG_SETFONT=y
|
||||
# CONFIG_FEATURE_SETFONT_TEXTUAL_MAP is not set
|
||||
CONFIG_DEFAULT_SETFONT_DIR=""
|
||||
# CONFIG_FEATURE_LOADFONT_PSF2 is not set
|
||||
CONFIG_DEFAULT_SETFONT_DIR="/usr/share"
|
||||
|
||||
#
|
||||
# Common options for loadfont and setfont
|
||||
#
|
||||
CONFIG_FEATURE_LOADFONT_PSF2=y
|
||||
# CONFIG_FEATURE_LOADFONT_RAW is not set
|
||||
# CONFIG_LOADKMAP is not set
|
||||
# CONFIG_OPENVT is not set
|
||||
|
@ -48,6 +48,8 @@ LIVE="no"
|
||||
|
||||
BREAK_TRIPPED="no"
|
||||
|
||||
BIGFONT="1080"
|
||||
|
||||
# Get a serial number if present (eg. RPi) otherwise use MAC address from eth0
|
||||
MACHINE_UID="$(cat /proc/cpuinfo | awk '/^Serial/{s=$3; gsub ("^0*","",s); print s}')"
|
||||
[ -z "$MACHINE_UID" ] && MACHINE_UID="$(cat /sys/class/net/eth0/address 2>/dev/null | tr -d :)"
|
||||
@ -367,6 +369,18 @@ load_modules() {
|
||||
done
|
||||
}
|
||||
|
||||
set_consolefont() {
|
||||
local vres
|
||||
|
||||
progress "Set console font"
|
||||
if [ -e /dev/fb0 ]; then
|
||||
vres="$(fbset 2>/dev/null | awk '/geometry/ { print $3 }')"
|
||||
if [ $vres -gt "$BIGFONT" ]; then
|
||||
setfont -C /dev/tty0 ter-v32b.psf
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
load_splash() {
|
||||
local set_default_res=no
|
||||
local vres
|
||||
@ -1035,6 +1049,9 @@ for arg in $(cat /proc/cmdline); do
|
||||
break=*)
|
||||
BREAK="${arg#*=}"
|
||||
;;
|
||||
bigfont=*)
|
||||
BIGFONT="${arg#*=}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
@ -1058,6 +1075,7 @@ debug_msg "Unique identifier for this client: ${MACHINE_UID:-NOT AVAILABLE}"
|
||||
# main boot sequence
|
||||
for BOOT_STEP in \
|
||||
load_modules \
|
||||
set_consolefont \
|
||||
check_disks \
|
||||
mount_flash \
|
||||
update_bootmenu \
|
||||
|
30
packages/sysutils/terminus-font/package.mk
Normal file
30
packages/sysutils/terminus-font/package.mk
Normal file
@ -0,0 +1,30 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2019 Matthias Reichl <hias@horus.com>
|
||||
|
||||
PKG_NAME="terminus-font"
|
||||
PKG_VERSION="4.48"
|
||||
PKG_SHA256="34799c8dd5cec7db8016b4a615820dfb43b395575afbb24fc17ee19c869c94af"
|
||||
PKG_LICENSE="OFL1_1"
|
||||
PKG_SITE="https://terminus-font.sourceforge.net/"
|
||||
PKG_URL="https://downloads.sourceforge.net/project/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_INIT="toolchain Python3:host"
|
||||
PKG_LONGDESC="This package contains the Terminus Font"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
pre_configure_init() {
|
||||
cd $PKG_BUILD
|
||||
rm -rf .${TARGET_NAME}-${TARGET}
|
||||
}
|
||||
|
||||
configure_init() {
|
||||
./configure INT=${TOOLCHAIN}/bin/python3
|
||||
}
|
||||
|
||||
make_init() {
|
||||
make ter-v32b.psf
|
||||
}
|
||||
|
||||
makeinstall_init() {
|
||||
mkdir -p ${INSTALL}/usr/share/consolefonts
|
||||
cp ter-v32b.psf ${INSTALL}/usr/share/consolefonts
|
||||
}
|
@ -7,7 +7,7 @@ PKG_VERSION=""
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.openelec.tv"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS_TARGET="toolchain libc:init busybox:init linux:init plymouth-lite:init util-linux:init e2fsprogs:init dosfstools:init fakeroot:host"
|
||||
PKG_DEPENDS_TARGET="toolchain libc:init busybox:init linux:init plymouth-lite:init util-linux:init e2fsprogs:init dosfstools:init fakeroot:host terminus-font:init"
|
||||
PKG_SECTION="virtual"
|
||||
PKG_LONGDESC="debug is a Metapackage for installing initramfs"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user