From e097d633220a415704f1c1f5e654f4eccc83e9ac Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 1 Jan 2016 17:51:00 +0100 Subject: Generate our own Grub font files, to fix the bad font rendering at UEFI boot. Slackware's shipped Grub font is 19 point in size which does not scale well. Research and proposed patch by Didier Spaier. --- make_slackware_live.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index aaeec27..043e590 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -587,7 +587,7 @@ fi # Are all the required add-on tools present? PROG_MISSING="" -for PROGN in mksquashfs unsquashfs syslinux mkisofs installpkg upgradepkg keytab-lilo ; do +for PROGN in mksquashfs unsquashfs grub-mkfont syslinux mkisofs isohybrid installpkg upgradepkg keytab-lilo ; do if ! which $PROGN 1>/dev/null 2>/dev/null ; then PROG_MISSING="${PROG_MISSING}-- $PROGN\n" fi @@ -1315,6 +1315,14 @@ fi mkdir -p ${LIVE_STAGING}/EFI/BOOT cp -a ${LIVE_TOOLDIR}/EFI/BOOT/{grub-embedded.cfg,make-grub.sh,osdetect.cfg,theme} ${LIVE_STAGING}/EFI/BOOT/ +# Create the grub fonts used in the theme: +for FSIZE in 5 10 12; do + grub-mkfont -s ${FSIZE} -bav \ + -o ${LIVE_STAGING}/EFI/BOOT/theme/dejavusansmono${FSIZE}.pf2 \ + /usr/share/fonts/TTF/DejaVuSansMono.ttf \ + | grep "^Font name: " +done + # The grub-embedded.cfg in the bootx64.efi looks for this file: touch ${LIVE_STAGING}/EFI/BOOT/${MARKER} -- cgit v1.2.3