Installing ChromeOS font on developer Linux machine
Added call to a new script in:
build/install-build-deps.sh
to download and install the ChromeOS default font
(Noto Sans UI). The installation is in:
/usr/local/share/fonts.
ChromeOS on Linux will use the font if present.
The installation creates (or recreates) a subdir:
"chromeos". In it it creates a .stamp file which is used
to avoid re-installation if it is already up to date.
It also creates a README file.
BUG=148945
TEST=manual;
One way to test is to instrument the file:
src/ui/gfx/platform_font_pango.cc
to log default_font_->GetFontName(); in ctor
PlatformFontPango::PlatformFontPango()
Expect:
W/out font installation: DejaVu Sans
With font installation: Noto Sans UI
Review URL: https://chromiumcodereview.appspot.com/12313039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184006 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh
index 4cb5165..ee27a50 100755
--- a/build/install-build-deps.sh
+++ b/build/install-build-deps.sh
@@ -14,6 +14,8 @@
echo "--[no-]syms: enable or disable installation of debugging symbols"
echo "--[no-]lib32: enable or disable installation of 32 bit libraries"
echo "--[no-]arm: enable or disable installation of arm cross toolchain"
+ echo "--[no-]chromeos-fonts: enable or disable installation of Chrome OS"\
+ "fonts"
echo "--no-prompt: silently select standard options/defaults"
echo "Script will prompt interactively if options not given."
exit 1
@@ -28,6 +30,8 @@
--no-lib32) do_inst_lib32=0;;
--arm) do_inst_arm=1;;
--no-arm) do_inst_arm=0;;
+ --chromeos-fonts) do_inst_chromeos_fonts=1;;
+ --no-chromeos-fonts) do_inst_chromeos_fonts=0;;
--no-prompt) do_default=1
do_quietly="-qq --assume-yes"
;;
@@ -201,6 +205,15 @@
dbg_list=
fi
+# Install the Chrome OS default fonts.
+if test "$do_inst_chromeos_fonts" != "0"; then
+ echo "Installing Chrome OS fonts."
+ dir=`echo $0 | sed -r -e 's/\/[^/]+$//'`
+ sudo $dir/linux/install-chromeos-fonts.py
+else
+ echo "Skipping installation of Chrome OS fonts."
+fi
+
# When cross building for arm on 64-bit systems the host binaries
# that are part of v8 need to be compiled with -m32 which means
# that basic multilib support is needed.