Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NDmc7-0005bg-BX for mharc-grub-devel@gnu.org; Thu, 26 Nov 2009 17:14:59 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDmc5-0005au-39 for grub-devel@gnu.org; Thu, 26 Nov 2009 17:14:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDmc0-0005Yn-H6 for grub-devel@gnu.org; Thu, 26 Nov 2009 17:14:56 -0500 Received: from [199.232.76.173] (port=37833 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDmc0-0005Ye-4h for grub-devel@gnu.org; Thu, 26 Nov 2009 17:14:52 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:44983) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDmbz-00032x-QQ for grub-devel@gnu.org; Thu, 26 Nov 2009 17:14:52 -0500 Received: by fxm5 with SMTP id 5so1028697fxm.8 for ; Thu, 26 Nov 2009 14:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to :content-type; bh=ef46ZbmY1l1b6B3yaWe+VtAlVHbkMV+GTsoDEUrK4Ms=; b=JacuKKOfdpqvp7XxNPYcPsl/g+p23hU+5JmU6dA3x3kJr8a/Kir8a+A/C486zl70Cf 73zIJlEgzGkcSyxnXEBQ1Cdrr+aIQMTfTfeDei/u6KYhc2P8ebobth9I6c7Y5TiHgVzL GpqFBJbvVZq9iyg05WqVdwWeGG+5L+QIHndhw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=lODi505W39OYvzpCUV24DPSnHkRmCSRv1ZheMmFdBIfFMpNzSX9SUSSi8CxMA4R+Y/ AB0Ji3rxT7fglkyQg73iuFT3Vrav48EDrnbq/qUfnXL/Ssr/Jip+AXVVD5DOyzJ+a3IL kCYl7TpmJpRF7tbf2IXw7KeYXbhIaY2vvuzdo= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.239.196.81 with SMTP id u17mr24614hbi.165.1259273690176; Thu, 26 Nov 2009 14:14:50 -0800 (PST) In-Reply-To: <4B0E9E51.4090803@gmail.com> References: <4B0E062F.6000000@gmail.com> <1259226689.2847.3.camel@fz.local> <4B0E9E51.4090803@gmail.com> From: Michal Suchanek Date: Thu, 26 Nov 2009 23:14:30 +0100 X-Google-Sender-Auth: 792adbeee1bb150c Message-ID: To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 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 22:14:57 -0000 2009/11/26 Qianqian Fang : > Felix Zielcke wrote: >> >> Even with the old .pff font format the whole unicode was possible but it >> was just slow IIRC. >> At least it was slow with first version of .pf2 or grub-mkfont. >> The .pf2 format itself is bitmap but see below. As input for grub-mkfont >> they can be TTF. >> > > that's great, does the font have to be monospaced (or Grub is capable of displaying variable width fonts but monospace fonts may be preferred for some uses. > dual-width for CJK)? what code point range you want > this CJK font file to provide? CJK glyphs only? Ideally grub should use as few fonts as possible so a font with both CJK glyphs and Latin glyphs is preferable. As you pointed out the glyphs in Unifont are mostly ported from wqy fonts so unifont would be one such font. We may need a special font for Japanese and a method to load different primary font when displaying the grub menu in Japanese is desired or extend grub to support combining variant marks. Unfortunately, unifont is only provided in single variant and size which is most troublesome in my view. I expect that theme authors would want at least two font variants (Song, Hei) and some larger font sizes for captions or displaying simple few line menu on high resolution screens. > >> As input format for grub-mkconf we support everything libfreetype >> supports, so TTF too. >> > > I guess you meant grub-mkfont. If that's the case, i.e. grub can > handle gray-scale bitmaps, then, use grub-mkconf to convert Grub does not support grayscale in its font format. The pf2 files are a collection of 1bit deep transparency masks. > WenQuanYi Micro Hei (Mono) will be my second recommendation > next to the wqy bitmap song solution. > > If grub happens to use fontconfig to handle fallback relationship, > you do need to be aware about this bug, as fontconfig does not > have everything to handle sfnt ttf format: > https://bugs.freedesktop.org/show_bug.cgi?id=23336 Grub does not use fontconfig. Thanks Michal