mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
We should have been using Droid Sans, not Helvetica, and some of the non-Roman locales need special handling to render clearly and correctly. We also get better results if we avoid scaling after rendering the text. Added scripts/newbitmaps/Makefile to regenerate it all, updated the READMEs. Since Hung-Te figured out how to use pango-view to render the UTF-8 reliably, we don't need to keep all the pre-rendered locale images anymore either. This provides the x86 bmpblock for Stumpy PVT. We may need some more tweaking for Lumpy and/or ARM. BUG=chrome-os-partner:6595 TEST=manual Put the new screens into the bios: gbb_utility -s --flags=0 -b bmpblock_x86.bin OLDBIOS NEWBIOS flashrom -w NEWBIOS Then reboot and look at the BIOS screens. The lettering is much clearer. Change-Id: Icb07bc6d131920730f41348c7de9151e42cc9518 Reviewed-on: https://gerrit.chromium.org/gerrit/11007 Tested-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
LOCALES=ar bg ca cs da de el en en_GB es es_419 et fa fi fil fr hi hr hu \
|
|
id it iw ja ko lt lv nl no pl pt_BR pt_PT ro ru sk sl sr sv th tr \
|
|
uk vi zh_CN zh_TW
|
|
|
|
# Use "make PT=15" for 800x600 (x86)
|
|
PT=22
|
|
|
|
|
|
DIR_TARGETS=$(foreach DIR,$(LOCALES),$(DIR)-dir)
|
|
|
|
CVT=../text_to_bmp --point=$(PT)
|
|
|
|
|
|
default: $(DIR_TARGETS)
|
|
|
|
%-dir:
|
|
$(CVT) $(subst -dir,,$@)/*.txt
|
|
|
|
ar-dir:
|
|
$(CVT) --rtl --font="Droid Sans Arabic" $(subst -dir,,$@)/*.txt
|
|
|
|
fa-dir:
|
|
$(CVT) --rtl $(subst -dir,,$@)/*.txt
|
|
|
|
hi-dir:
|
|
$(CVT) --font="Lohit-Hindi" $(subst -dir,,$@)/*.txt
|
|
|
|
iw-dir:
|
|
$(CVT) --rtl --font="Droid Sans Hebrew" $(subst -dir,,$@)/*.txt
|
|
|
|
ja-dir:
|
|
$(CVT) --font="IPAPGothic" $(subst -dir,,$@)/*.txt
|
|
|
|
ko-dir:
|
|
$(CVT) --font="NanumGothic" $(subst -dir,,$@)/*.txt
|
|
|
|
th-dir:
|
|
$(CVT) --font="Droid Sans Thai" $(subst -dir,,$@)/*.txt
|
|
|
|
zh_CN-dir:
|
|
$(CVT) --font="Droid Sans Fallback" $(subst -dir,,$@)/*.txt
|
|
|
|
zh_TW-dir:
|
|
$(CVT) --font="Droid Sans Fallback" $(subst -dir,,$@)/*.txt
|
|
|
|
|
|
|
|
$(DIR_TARGETS) : FORCE
|
|
|
|
.PHONY: FORCE
|