grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH] Improve DejaVuSans detection
Date: Sat, 18 Jan 2014 21:04:38 +0400	[thread overview]
Message-ID: <20140118210438.43692ccb@opensuse.site> (raw)
In-Reply-To: <52DAAB28.7060606@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2547 bytes --]

В Sat, 18 Jan 2014 17:26:16 +0100
Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> пишет:

> On 18.01.2014 16:58, Andrey Borzenkov wrote:
> > 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.
> > 
> 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 <arvidjaar@gmail.com>
Subject: [PATCH] Improve DejaVuSans detection and fix starfield terminal font

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 looks
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
 
 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
+     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
         if test -f "$dir/DejaVuSans.$ext"; then
           DJVU_FONT_SOURCE="$dir/DejaVuSans.$ext"
           break 2
@@ -1816,6 +1816,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
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"
 
 #help bar at the bottom
-- 
tg: (1ecf96f..) u/dejavu-path (depends on: master)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2014-01-18 17:04 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 ` [PATCH] Improve DejaVuSans detection Andrey Borzenkov
2014-01-18 16:26   ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-18 17:04     ` Andrey Borzenkov [this message]
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=20140118210438.43692ccb@opensuse.site \
    --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).