From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [PATCH] Improve DejaVuSans detection
Date: Tue, 21 Jan 2014 08:40:39 +0100 [thread overview]
Message-ID: <52DE2477.3040209@gmail.com> (raw)
In-Reply-To: <20140118210438.43692ccb@opensuse.site>
[-- Attachment #1: Type: text/plain, Size: 3079 bytes --]
On 18.01.2014 18:04, Andrey Borzenkov wrote:
> В 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.
>
I've misread the patch in my first review. I thought it added a new
behaviour of looking for DejaVuSans.
> ---
> 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
Go ahead for this part.
> 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
Go ahead for this as well.
> 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"
>
On my system I get name "Unifont Regular 16". Did you check unicode.pf2
to get this string?
> #help bar at the bottom
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 274 bytes --]
next prev parent reply other threads:[~2014-01-21 8:15 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
2014-01-21 7:40 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
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=52DE2477.3040209@gmail.com \
--to=phcoder@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).