* [PATCH] Make the unifont FONT_SOURCE configurable as --with-unifont=FILE
@ 2012-04-06 17:37 Mads Kiilerich
2012-04-18 9:27 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 3+ messages in thread
From: Mads Kiilerich @ 2012-04-06 17:37 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
Fonts might be located in different locations, and the default fonts
(Unifont and DejaVu Sans)
are not available on all systems or other fonts might be preferred.
2012-04-06 Mads Kiilerich <mads@kiilerich.com>
* configure.ac: Make the unifont FONT_SOURCE configurable as
--with-unifont=FILE
[-- Attachment #2: grub-configure-unifont.patch --]
[-- Type: text/x-patch, Size: 1285 bytes --]
=== modified file 'configure.ac'
--- configure.ac 2012-04-01 19:54:45 +0000
+++ configure.ac 2012-04-06 17:21:55 +0000
@@ -238,16 +238,23 @@
AC_MSG_ERROR([bison is not found])
fi
-FONT_SOURCE=
+AC_ARG_WITH([unifont],
+ AS_HELP_STRING([--with-unifont=FILE],
+ [set the unifont source [[guessed]]]))
-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/unifont; do
- if test -f "$dir/unifont.$ext"; then
- FONT_SOURCE="$dir/unifont.$ext"
- break 2
- fi
+if test "x$with_unifont" = x; then
+ FONT_SOURCE=
+ 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/unifont; do
+ if test -f "$dir/unifont.$ext"; then
+ FONT_SOURCE="$dir/unifont.$ext"
+ break 2
+ fi
+ done
done
-done
+else
+ FONT_SOURCE="$with_unifont"
+fi
if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xqemu_mips); then
AC_MSG_ERROR([qemu and loongson ports need unifont])
@@ -930,7 +937,7 @@
AC_SUBST([freetype_cflags])
AC_SUBST([freetype_libs])
-DJVU_FONT_SOURCE=
+DJVU_FONT_SOURCE="$FONT_SOURCE"
starfield_excuse=
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] Make the unifont FONT_SOURCE configurable as --with-unifont=FILE 2012-04-06 17:37 [PATCH] Make the unifont FONT_SOURCE configurable as --with-unifont=FILE Mads Kiilerich @ 2012-04-18 9:27 ` Vladimir 'φ-coder/phcoder' Serbinenko 2012-04-18 9:32 ` Vladimir 'φ-coder/phcoder' Serbinenko 0 siblings, 1 reply; 3+ messages in thread From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-04-18 9:27 UTC (permalink / raw) To: grub-devel [-- Attachment #1: Type: text/plain, Size: 623 bytes --] On 06.04.2012 19:37, Mads Kiilerich wrote: > Fonts might be located in different locations, If so, please supply the relevant locations. It's usually a bad idea to make user to think about where a file X is located on his system. > and the default fonts (Unifont and DejaVu Sans) > are not available on all systems or other fonts might be preferred. > There are reasons why exactly these fonts are chosen and their use in GRUB differs. Unifont is chosen for comprehensive BMP coverage, while DejaVu Sans was chosen as a part of starfield theme design. -- Regards Vladimir 'φ-coder/phcoder' Serbinenko [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 294 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Make the unifont FONT_SOURCE configurable as --with-unifont=FILE 2012-04-18 9:27 ` Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-04-18 9:32 ` Vladimir 'φ-coder/phcoder' Serbinenko 0 siblings, 0 replies; 3+ messages in thread From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2012-04-18 9:32 UTC (permalink / raw) To: grub-devel [-- Attachment #1: Type: text/plain, Size: 817 bytes --] On 18.04.2012 11:27, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 06.04.2012 19:37, Mads Kiilerich wrote: >> Fonts might be located in different locations, > If so, please supply the relevant locations. It's usually a bad idea to > make user to think about where a file X is located on his system. >> and the default fonts (Unifont and DejaVu Sans) >> are not available on all systems or other fonts might be preferred. >> > There are reasons why exactly these fonts are chosen and their use in > GRUB differs. > Unifont is chosen for comprehensive BMP coverage, And also it's a monospace font used for terminal, you can't replace it with a proportional font. > while DejaVu Sans was > chosen as a part of starfield theme design. > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 294 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-18 9:45 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-04-06 17:37 [PATCH] Make the unifont FONT_SOURCE configurable as --with-unifont=FILE Mads Kiilerich 2012-04-18 9:27 ` Vladimir 'φ-coder/phcoder' Serbinenko 2012-04-18 9:32 ` Vladimir 'φ-coder/phcoder' Serbinenko
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.