From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NEVrO-0003hx-M5 for mharc-grub-devel@gnu.org; Sat, 28 Nov 2009 17:33:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NEVrM-0003h4-Ni for grub-devel@gnu.org; Sat, 28 Nov 2009 17:33:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NEVrG-0003g1-SZ for grub-devel@gnu.org; Sat, 28 Nov 2009 17:33:43 -0500 Received: from [199.232.76.173] (port=43822 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEVrG-0003fy-MV for grub-devel@gnu.org; Sat, 28 Nov 2009 17:33:38 -0500 Received: from qw-out-1920.google.com ([74.125.92.146]:48113) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NEVrG-00078i-CH for grub-devel@gnu.org; Sat, 28 Nov 2009 17:33:38 -0500 Received: by qw-out-1920.google.com with SMTP id 5so456401qwc.24 for ; Sat, 28 Nov 2009 14:33:37 -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:references:in-reply-to :content-type:content-transfer-encoding; bh=JO+hLOacyfG+j9Sm+gO1+1x7vcpGL4X7jnCtR2kdv48=; b=umyrxOVsMcngH9mRzKz8u0+s1ZygkTOR8q0deZ7t66n6hIx6UznNR+QcsjZlwaq0KQ C8ZCGS9zsyGUIEk79S2IYyc3O3+tjvvNpu/JhytTKA3R5Q6JfsZMSOdYUnu8SOheMYCU M/xRCdU6AqbfgmJCK3nR+l6l+/IniulNxsgY8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=C4L3msyzCu8e3f1g6BBuWvvErcKYRhB5TAp+F0MT9ukxXte3NGmrFh0dI1gFJqvZxp dyGr26MDH1cV4tG8719rCVXB+r5rvjFH8pnPUtzDKZ1T9C4uwS8klaJgKMv1hklgidA4 H3FFxAVvCw4aSEah6StLc/xni5C2cYrUcEwYE= Received: by 10.224.127.12 with SMTP id e12mr1268453qas.275.1259447617498; Sat, 28 Nov 2009 14:33:37 -0800 (PST) Received: from ?192.168.1.5? (c-24-128-82-101.hsd1.ma.comcast.net [24.128.82.101]) by mx.google.com with ESMTPS id 21sm2397241qyk.12.2009.11.28.14.33.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 28 Nov 2009 14:33:36 -0800 (PST) Message-ID: <4B11A53E.8090002@gmail.com> Date: Sat, 28 Nov 2009 17:33:34 -0500 From: Qianqian Fang User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: The development of GNU GRUB References: <4B0E062F.6000000@gmail.com> <1259226689.2847.3.camel@fz.local> <4B0E9E51.4090803@gmail.com> <4B0F21C8.3@gmail.com> <4B108113.5010407@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; 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: Sat, 28 Nov 2009 22:33:45 -0000 Michal Suchanek wrote: > Am I missing something? For me fontconfig was always a commandline > tool. I do use some charmap tools but onen of them comes with > fontconfig. I am sorry, I meant "fontforge", not fontconfig. Those are the steps to prepare a bitmap font (in bdf format, then you can convert it to pf2) > I wonder if this is reproducible with grub-mkfont. > > Also is autohinting free enough to be enabled in Debian and other > distribution packages? I don't recall the exact details of the patent > issues with different font rendering methods. > I don't think so, but you can try. A good resterization requires the font itself to contain the so called "hints", either PS hints or TTF hints. But most free CJK vector fonts don't have it build-in. That's why I have the steps to produce those in fontforge. Autohint is fine, the same for PS hints. It is the truetype hint that has a patent, but I heard it got expired this Oct. I don't know if it has been renewed or not. Ubuntu ships byte-code-enabled freetype. Debian doesn't (at least a few years ago). > I am not sure this is optimal method of rasterizing fonts. Perhaps > grub should be improved to handle vector graphics or at least fonts > rasterized into greyscale. > As I said, to produce a good resterization, the font file need to contain hints, but almost all free CJK fonts don't have. I don't think grub can help in this aspect, unless you port the "stem-extraction" code from fontforge, that's a lot of work. > The uming_32px contains pretty large and mostly nice glyphs but they > are still clearly pixelated, even at this size. > > Given the 1-bit bitmap limitation most glyphs look pretty good but the > 灱 glyph just above the UmingCN title in the taskbar is particularly > ugly. Is this an expected limitation of this rendering method that > some glyphs simply turn out ugly or is this a bug in the font? > I am not sure which glyph you are referring to, but if you are talking about the AA-ed small-sized Han glyphs above each bitmap, it is the direct rendering results from ZenHei by freetype2, without embedded bitmaps and autohint, and yes, they look blurry. In fact, all of the CJK fonts will look blurry at that size. Fortunately, ZenHei has embedded bitmaps. > Thanks > > Michal > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > >