From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: [PATCH] Improve DejaVuSans detection
Date: Sat, 18 Jan 2014 19:58:11 +0400 [thread overview]
Message-ID: <1390060691-9862-1-git-send-email-arvidjaar@gmail.com> (raw)
In-Reply-To: <1389528954-24812-1-git-send-email-arvidjaar@gmail.com>
Look also in /usr/share/fonts/truetype, it is installed in this path on
openSUSE.
Prefer DejaVuSansMono if found, on openSUSE DejaVuSans is proportional font.
Add detected path name to summary output.
---
configure.ac | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index 2e4cf3c..98f6012 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1378,11 +1378,13 @@ fi
if test x"$starfield_excuse" = 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/truetype/ttf-dejavu /usr/share/fonts/dejavu; do
- if test -f "$dir/DejaVuSans.$ext"; then
- DJVU_FONT_SOURCE="$dir/DejaVuSans.$ext"
- break 2
- fi
+ for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/truetype/ttf-dejavu /usr/share/fonts/dejavu /usr/share/fonts/truetype; do
+ for font in DejaVuSansMono DejaVuSans; do
+ if test -f "$dir/$font.$ext"; then
+ DJVU_FONT_SOURCE="$dir/$font.$ext"
+ break 2
+ fi
+ done
done
done
@@ -1805,6 +1807,7 @@ echo grub-mount: No "($grub_mount_excuse)"
fi
if [ x"$starfield_excuse" = x ]; then
echo starfield theme: Yes
+echo With DejaVuSans font from $DJVU_FONT_SOURCE
else
echo starfield theme: No "($starfield_excuse)"
fi
--
tg: (dcecae1..) u/dejavu-path (depends on: master)
next prev parent reply other threads:[~2014-01-18 15:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-12 12:15 [PATCH] look for DejaVu also in /usr/share/fonts/truetype Andrey Borzenkov
2014-01-18 15:58 ` Andrey Borzenkov [this message]
2014-01-18 16:26 ` [PATCH] Improve DejaVuSans detection Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-18 17:04 ` Andrey Borzenkov
2014-01-21 7:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-21 16:18 ` Andrey Borzenkov
2014-01-21 7:46 ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-21 16:16 ` Andrey Borzenkov
2014-01-21 23:16 ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-25 20:05 ` Andrey Borzenkov
2014-01-21 7:29 ` [PATCH] look for DejaVu also in /usr/share/fonts/truetype Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1390060691-9862-1-git-send-email-arvidjaar@gmail.com \
--to=arvidjaar@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).