From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W4ZKI-0003Ih-1N for mharc-grub-devel@gnu.org; Sat, 18 Jan 2014 12:04:54 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ZKB-0003I3-Dp for grub-devel@gnu.org; Sat, 18 Jan 2014 12:04:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4ZK5-0006kU-MT for grub-devel@gnu.org; Sat, 18 Jan 2014 12:04:47 -0500 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:50957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4ZK5-0006jU-F5 for grub-devel@gnu.org; Sat, 18 Jan 2014 12:04:41 -0500 Received: by mail-la0-f48.google.com with SMTP id er20so4464441lab.35 for ; Sat, 18 Jan 2014 09:04:40 -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=EMMO5pFE0/bEL1ogKN6Ef6C7V5VVyncEp/2Xwq2c1DM=; b=tbZ8YiqA1nyGQ5KoSp7PnxRDMsvir0OGBOI+FEbMb9UrrvM/23i6CqqSkqA3C7I34C mw8eEyJLN/YyddZBzYfhzEe7rOS96GCAeRp6PueCxAxOsij6zbeh/A8FQOe2wVbqOrf0 bID3qEOZVybeQjlZyY8klastkFQvVFdEMypD7gvrmIewZaoyQ3mN8V1e9OhtUIfPTfLJ sApZJ893bEl/QGG9gn3B7B9wCZJUP8tf/ILu1UJxGErdCS7LAYgKvhq9vxVUK8DKcR2n oStEtUzDlXrfpDoptguw3t7yBRmQHZTfdRquwgAm5DUHIy0E040lKoWkiOn7fwlSC8E9 O7ow== X-Received: by 10.112.199.225 with SMTP id jn1mr629318lbc.49.1390064680237; Sat, 18 Jan 2014 09:04:40 -0800 (PST) Received: from opensuse.site (ppp91-76-163-241.pppoe.mtu-net.ru. [91.76.163.241]) by mx.google.com with ESMTPSA id tc8sm9478913lbb.9.2014.01.18.09.04.38 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 18 Jan 2014 09:04:39 -0800 (PST) Date: Sat, 18 Jan 2014 21:04:38 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: [PATCH] Improve DejaVuSans detection Message-ID: <20140118210438.43692ccb@opensuse.site> In-Reply-To: <52DAAB28.7060606@gmail.com> References: <1389528954-24812-1-git-send-email-arvidjaar@gmail.com> <1390060691-9862-1-git-send-email-arvidjaar@gmail.com> <52DAAB28.7060606@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_/lpFXWjltHAw9rL7op_o3YLs"; 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:c03::230 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: Sat, 18 Jan 2014 17:04:53 -0000 --Sig_/lpFXWjltHAw9rL7op_o3YLs Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Sat, 18 Jan 2014 17:26:16 +0100 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > On 18.01.2014 16:58, Andrey Borzenkov wrote: > > Look also in /usr/share/fonts/truetype, it is installed in this path on > > openSUSE. > >=20 > > Prefer DejaVuSansMono if found, on openSUSE DejaVuSans is proportional = font. > >=20 > It's not right solution. Proportional fonts must be preffered for > themes. Only terminal requires monospace fonts. You need to set > gfxterm_font to unifont name. But then not gfxterm_font, but we need to set it in theme definition. gfxterm_font is optional and theme must still work without it. From: Andrey Borzenkov Subject: [PATCH] Improve DejaVuSans detection and fix starfield terminal fo= nt Look also in /usr/share/fonts/truetype, it is installed in this path on openSUSE. Add detected path name to summary output. Set terminal font to unifont in starfield; DejaVuSans is proportional and l= ooks bad in terminal window. --- configure.ac | 3 ++- themes/starfield/theme.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index cf3de3b..8888c2f 100644 --- a/configure.ac +++ b/configure.ac @@ -1389,7 +1389,7 @@ fi =20 if test x"$starfield_excuse" =3D x; then for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do - for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/true= type/ttf-dejavu /usr/share/fonts/dejavu; do + for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/true= type/ttf-dejavu /usr/share/fonts/dejavu /usr/share/fonts/truetype; do if test -f "$dir/DejaVuSans.$ext"; then DJVU_FONT_SOURCE=3D"$dir/DejaVuSans.$ext" break 2 @@ -1816,6 +1816,7 @@ echo grub-mount: No "($grub_mount_excuse)" fi if [ x"$starfield_excuse" =3D x ]; then echo starfield theme: Yes +echo With DejaVuSans font from $DJVU_FONT_SOURCE else echo starfield theme: No "($starfield_excuse)" fi diff --git a/themes/starfield/theme.txt b/themes/starfield/theme.txt index 5ec871b..b3b8d85 100644 --- a/themes/starfield/theme.txt +++ b/themes/starfield/theme.txt @@ -25,7 +25,7 @@ message-font: "DejaVu Sans Regular 12" message-color: "#000" message-bg-color: "#fff" terminal-box: "terminal_box_*.png" -terminal-font: "DejaVu Sans Regular 12" +terminal-font: "Gnu Unifont Mono Regular 16" desktop-image: "starfield.png" =20 #help bar at the bottom --=20 tg: (1ecf96f..) u/dejavu-path (depends on: master) --Sig_/lpFXWjltHAw9rL7op_o3YLs Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlLatCYACgkQR6LMutpd94wk/wCeISjlksSAZxrflpClQp274sxp LmEAoMtHl2VGaQiA+NTQp8qRQSjGUq7w =wieG -----END PGP SIGNATURE----- --Sig_/lpFXWjltHAw9rL7op_o3YLs--