From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W5e0I-0004nq-6n for mharc-grub-devel@gnu.org; Tue, 21 Jan 2014 11:16:42 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5e07-0004jU-8L for grub-devel@gnu.org; Tue, 21 Jan 2014 11:16:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5dzy-0004xT-MX for grub-devel@gnu.org; Tue, 21 Jan 2014 11:16:31 -0500 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:43194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5dzy-0004wU-DZ for grub-devel@gnu.org; Tue, 21 Jan 2014 11:16:22 -0500 Received: by mail-lb0-f172.google.com with SMTP id c11so6117890lbj.17 for ; Tue, 21 Jan 2014 08:16:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type; bh=IYh7N7OdOISef/Wwh+SXOwcdHBAUBGzprz3y1KDQxd8=; b=fPghPN1y09+cwN1rXJp8wrXqzJ8bsuqrSnex0ciw5QnSsqY1OIHj8EvKpIlDZrMi6g XRo6hQYWONwPReUSDbAn09tZiKJJThFobrVJDygwYuWs0ymO/BVgDw48TIn1ckTszFcJ eq3BDrLwKPRWzztv3qSkEeIlH0LjkM08u4D4fZ9n4eKLcsn5yv5M7Su37gcE7eOTHq9F syzAtFiLDtycb/LBpmkyTQjAtj2rrT6QaAEVEhhl7/unPX3CfLqUcka5NX6vazu2gcr+ wB1b+nY8Pw3o9uufJCtGQc8ZH8h7rFROHc7LrGqmvGJtMjQbaKgmTiXs8JDxRpk8hYjQ 1jRQ== X-Received: by 10.112.11.170 with SMTP id r10mr15885974lbb.23.1390320980929; Tue, 21 Jan 2014 08:16:20 -0800 (PST) Received: from opensuse.site (ppp91-76-154-95.pppoe.mtu-net.ru. [91.76.154.95]) by mx.google.com with ESMTPSA id s9sm6059781laj.0.2014.01.21.08.16.19 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 21 Jan 2014 08:16:19 -0800 (PST) Date: Tue, 21 Jan 2014 20:16:19 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: [PATCH] Improve DejaVuSans detection Message-ID: <20140121201619.0b577a81@opensuse.site> In-Reply-To: <52DE25E1.3030006@gmail.com> References: <1389528954-24812-1-git-send-email-arvidjaar@gmail.com> <1390060691-9862-1-git-send-email-arvidjaar@gmail.com> <52DE25E1.3030006@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/jfw5fmz/hEUmE/8G5tYm0yJ"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22c X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 16:16:39 -0000 --Sig_/jfw5fmz/hEUmE/8G5tYm0yJ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Tue, 21 Jan 2014 08:46:41 +0100 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > > Prefer DejaVuSansMono if found, on openSUSE DejaVuSans is proportional = font. > >=20 > It's fine to use SansMono for terminal (I'd prefer unifont though) but > this change also changes the way various items in menu are displayed. > Monospace fonts are less dense so allow less info in menu on small screen= s. Yes, I realized that. The problem is, unifont may be missing (user is free to override it with GRUB_FONT) and theme must be self-consistent (which is also why my other attempt to set font to Unifont is not quite correct as well). I tried to build fixed width DejaVuSansMono, but I do not like results enough. First, it results in extremely large vertical size using standard parameters; e.g. bor@opensuse:~/build/grub> ./build-grub-mkfont -o /tmp/foo.pf2 -v -s 12 /us= r/share/fonts/truetype/DejaVuSansMono.ttf=20 Unknown gsub font feature 0x63636d70 (ccmp) Unknown gsub font feature 0x646c6967 (dlig) Unsupported substitution flag: 0x9 Unsupported substitution flag: 0x9 Unknown gsub font feature 0x6c6f636c (locl) Unknown gsub font feature 0x6c6f636c (locl) Unsupported substitution flag: 0x9 Font name: DejaVu Sans Mono Regular 12 Max width: 11 Max height: 22 Font ascent: 14 Font descent: 4 Number of glyph: 3388 22 height for font size 12! Forcing hinting gives something more close to reality bor@opensuse:~/build/grub> ./build-grub-mkfont -o /tmp/foo.pf2 -v -s 12 -a = /usr/share/fonts/truetype/DejaVuSansMono.ttf=20 Unknown gsub font feature 0x63636d70 (ccmp) Unknown gsub font feature 0x646c6967 (dlig) Unsupported substitution flag: 0x9 Unsupported substitution flag: 0x9 Unknown gsub font feature 0x6c6f636c (locl) Unknown gsub font feature 0x6c6f636c (locl) Unsupported substitution flag: 0x9 Font name: DejaVu Sans Mono Regular 12 Max width: 11 Max height: 16 Font ascent: 13 Font descent: 5 Number of glyph: 3388 But still too high so vertical lines look dashed. May be the simplest solution would be to follow the same logic as gfxterm - unless terminal-font is explicitly set, use $gfxterm_font by default with fallback to first loaded font. --Sig_/jfw5fmz/hEUmE/8G5tYm0yJ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlLenVMACgkQR6LMutpd94wUewCeObjwN5m8Z7euL7nK9xumY/kq VAQAoJ1lu1YBHjke+E/VGMuCUFL5c/E9 =ZjUl -----END PGP SIGNATURE----- --Sig_/jfw5fmz/hEUmE/8G5tYm0yJ--