Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NEVFE-0003u0-7e for mharc-grub-devel@gnu.org; Sat, 28 Nov 2009 16:54:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NEVFC-0003tv-Hg for grub-devel@gnu.org; Sat, 28 Nov 2009 16:54:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NEVF7-0003p3-K5 for grub-devel@gnu.org; Sat, 28 Nov 2009 16:54:17 -0500 Received: from [199.232.76.173] (port=36315 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NEVF7-0003oy-EG for grub-devel@gnu.org; Sat, 28 Nov 2009 16:54:13 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:49440) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NEVF6-0005WJ-Rn for grub-devel@gnu.org; Sat, 28 Nov 2009 16:54:13 -0500 Received: by fxm5 with SMTP id 5so2339316fxm.8 for ; Sat, 28 Nov 2009 13:54:11 -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:content-transfer-encoding; bh=MAtIq9WJS3L9tV215/NpW7B3HahbuZ7jDLHqgFFoxLE=; b=lPeoxRtx6wMSVUoXM31pA+4PAMs/to613QYMksYkaduZtSvMdGP+HGe2mG7tu29Qy7 7PVRbg6LXslHESm0Mehgj6OSAqEUyfxABbVFQxdluJZuKOOSJbyy5jEUeGeFwIQBi9xU 6n9GQOwcUmtUN/f4EW9RThts7YdsODQxRt8Bk= 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 :content-transfer-encoding; b=ifDUGbkXuFTGcByBfodVa1D0IaO03Ysc6IT1jKv5nzCYiboOMLLXaK//QegQDuL3J/ 3P9lS+gz1L4HiPiCpw5ee6B1N2j8syWZ/RofytWlodjq7gJMUaXXTvFwz2sqIywAFkt+ QeDlvgQDDsT0HuPaua4crKLzTHZKUpokmrXKQ= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.239.168.131 with SMTP id k3mr280635hbe.101.1259445251082; Sat, 28 Nov 2009 13:54:11 -0800 (PST) In-Reply-To: <4B108113.5010407@gmail.com> References: <4B0E062F.6000000@gmail.com> <1259226689.2847.3.camel@fz.local> <4B0E9E51.4090803@gmail.com> <4B0F21C8.3@gmail.com> <4B108113.5010407@gmail.com> From: Michal Suchanek Date: Sat, 28 Nov 2009 22:53:51 +0100 X-Google-Sender-Auth: d0590f40f3aa58ee Message-ID: To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 21:54:19 -0000 2009/11/28 Qianqian Fang : > Michal Suchanek wrote: >> >> Thanks for these tips. I guess wider by one px is acceptable for an >> alternate font, the fonts need not be displayed both at the same time. >> I am not sure if lower quality glyphs of correct shape are preferred >> over higher quality Chinese glyphs, though. I guess it would also >> depend on reader preference but it would be nice to hear the opinion >> of somebody familiar with Japanese. >> > > Using different fonts for different language makes life easier. But slower. In grub loading a font and looking up glyphs in multiple fonts is quite slow, at least in qemu where most people test the feature. > >> For me the Song/Mincho variant fonts seem more readable at small >> sizes. Although the serifs aren't clearly visible they often add >> weight to the stroke ends and make them easier to recognize. However, >> this may be matter of preference/reader familiarity with the >> language/overall font quality/... >> >> I think that there is not much need for smaller fonts than the default >> 16px/12pt Unifont. It would be nice addition to have a font for >> fine-print but I am personally more interested in larger font sizes >> for captions or simple menus on high resolution screens. >> >> In the larger sizes the difference between different font styles is >> more visible. >> > > I misunderstood the call. You want to have fonts larger than 12pt, > not smaller, as we usually concern. That's fine, actually that is > a lot easier to handle. > > I don't know what sizes you prefer, you can find bitmap resources > at typical sizes at 24px/32px/48px. Indeed, using freetype/autohint, > the rasterization of the popular CJK fonts may entirely usable > at these sizes. > > In the following links, I experimented to hint/instruct/rasterize > the common CJK fonts, and I think the results are quite usable: > > Hei-style: > =C2=A0WQY Micro Hei@24px: http://wenq.org/upload/microhei_24px.png > =C2=A0WQY Micro Hei@32px: http://wenq.org/upload/microhei_32px.png > > Song-style: > =C2=A0Japanese Mincho@24px (efont f24): > http://wenq.org/upload/efont_micho_24px.png > =C2=A0Chinese Song@32px (uming): http://wenq.org/upload/uming_32px.png > > Except the efont 24px, all screenshots were made by rasterizing > vector fonts with freetype2 with autohints. Here are the steps > to reproduce: > > 1. open a TTF/TTC files in fontconfig, navigate to CJK zone (U4E00-U9FCB) 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. > 2. select tens to hundreds of glyphs, select menu Hint\Autohint > 3. then, goto menu Element\Font Info...\PS Private, hit Add and add > =C2=A0multiple PS hints, include StdHW and StdVW, use the guessed values > 4. select menu Hint\AutoInstruct 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. > 5. select menu Element\Bitmap Strikes Available\, type whatever > =C2=A0pixel sizes you want in the 3rd box, check freetype, and click ok > 6. now from menu View, select the strike you just generated > > As I mentioned earlier, if you want to produce Japanese Hei-style > Kanji bitmaps, you can apply the above procedures to > DroidSansJapanese. And of course, the bigger the size, the better the > results. 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. 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 =E7=81=B1 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? Thanks Michal