From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NDW7a-0007Qd-J7 for mharc-grub-devel@gnu.org; Wed, 25 Nov 2009 23:38:22 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDW7Y-0007QQ-8f for grub-devel@gnu.org; Wed, 25 Nov 2009 23:38:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDW7S-0007Oi-NJ for grub-devel@gnu.org; Wed, 25 Nov 2009 23:38:18 -0500 Received: from [199.232.76.173] (port=42834 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDW7S-0007Of-IP for grub-devel@gnu.org; Wed, 25 Nov 2009 23:38:14 -0500 Received: from mail-qy0-f196.google.com ([209.85.221.196]:34111) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDW7S-0002f9-37 for grub-devel@gnu.org; Wed, 25 Nov 2009 23:38:14 -0500 Received: by qyk34 with SMTP id 34so223785qyk.14 for ; Wed, 25 Nov 2009 20:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=Xd1J9X3GiKUk3L1TNyyMH8MTbDCGehcXzj8szgg+uTA=; b=Fry1ArKo7ifmmdDrbb7n6+ThgsBZngdQITg09j4LeblAOySgV17N1jI6FkbcJoZyoa +6fp8LprD5QAQtDxjF00FInmd95QEjaVmWUKKYk6hvwm1hpDZ2AhEixM3KGwU6aVh3LS DiMTNyzhVhMz/7aPi7Cmbee2N33a7UR2LfqBE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=kqsTdV7+Uru+CpSBVsQ/vDM7uffMcxDqp6DsmPGhs+YZtUFvq4ByeyBS8z86JoDBTX vfbJVh/WLGmZoJggdGYpRANOZniUQ519ZCqh+9Olqqi/kmPyQt9uGyJY1MUd/9viuhBZ u622ED78iUyu1HwLdeOSCuUp2uF14HwkDKyro= Received: by 10.224.57.142 with SMTP id c14mr4441346qah.356.1259210290213; Wed, 25 Nov 2009 20:38:10 -0800 (PST) Received: from ?192.168.1.5? (c-65-96-156-243.hsd1.ma.comcast.net [65.96.156.243]) by mx.google.com with ESMTPS id 8sm906337qwj.43.2009.11.25.20.38.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 25 Nov 2009 20:38:09 -0800 (PST) Message-ID: <4B0E062F.6000000@gmail.com> Date: Wed, 25 Nov 2009 23:38:07 -0500 From: Qianqian Fang User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: fonts for gfxmenu, help needed X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2009 04:38:20 -0000 hi list My friend brought me attention to this thread, and I am very glad to see a better CJK support is now on the agenda of grub. As a Chinese font developer, I am willing to help, share information or build fonts for this specific need. I wasn't really following how fonts were used in grub, and still had the (wrong) impression that only 256 glyphs are allowed for each file. After opening the overlay_2009-07-19 tarball, I saw large files such as unifont are included, so, I guess now grub is able to handle the full unicode (or BMP) fonts including CJK ones, is this correct? do they have to be bitmaps? If the answers to my above questions are "yes", then I think you may consider a customized version of "WenQuanYi Bitmap Song" [1], which is a multi-strike bitmap font containing >27000 Chinese Han glyphs at 9pt,10pt,10.5pt,11pt and 12pt sizes. The Latin part of this font are not "monospaced", but we can either merge it with other mono Latin fonts (GPL compatible), or use fallback to get around it. I saw you already have the later version of GNU Unifont installed, if that's the case, then you can skip the 12pt of WenQuanYi Bitmap Song, because most of the CJK glyphs in Unifont 5.1 were ported from WQY's bitmap font last year by Paul Hardy [2]. About format, I don't know if you can use ttf file, or SFNT ttf file (with only embedded bitmaps). WQY Bitmap Song has an SFNT TTF version [3]. It appears that freetype2 works fine with it, but fontconfig has difficulties. Using SFNT TTF, the uncompressed font size is about 3M (with 9,10,11,12pt),which is fairly lightweight. If grub happens to be able to process vector ttf fonts, I would recommend DroidSansFallback [4] or the derived WenQuanYi Micro Hei [5]. They both covers a huge span of languages, and the second one have a lot more CJK glyphs and both proportional and monospaced species. Please let me know if you have any further comments, Qianqian [1] http://wenq.org/enindex.cgi?BitmapSong_en [2] http://unifoundry.com/unifont.html [3] http://sourceforge.net/projects/wqy/files/wqy-bitmapfont-pkgsrc/0.8.1/ [4] http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts;hb=HEAD [5] http://wenq.org/enindex.cgi?MicroHei%28en%29 *From*: Michal Suchanek *Subject*: Re: fonts for gfxmenu, help needed *Date*: Wed, 25 Nov 2009 17:04:59 +0100 ------------------------------------------------------------------------ 2009/11/25 feng shu : >/ 2009/11/25 Vladimir 'Ï-coder/phcoder' Serbinenko :/ >/> Michal Suchanek wrote:/ >/>>/ >/>> Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly/ >/>> written in Latin, Chinese cannot./ >/>>/ >/> pinyin. I know it's disagreable to read for native speakers, but it's/ >/> similar for Arabic./ > >/ show grub menu with pinyin? Âit is very very stupid./ > I guess most people in Europe simply don't understand that pinyin is unreadable. Fortunately, displaying Chinese characters should be well within the capabilities of current gfxterm although the font is likely poor quality. Any testers who can tell the difference between commonly used Chinese fonts and GNU Unifont are welcome. Thanks Michal