Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NDDlN-0004U2-PH for mharc-grub-devel@gnu.org; Wed, 25 Nov 2009 04:02:13 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDDlL-0004TN-PF for grub-devel@gnu.org; Wed, 25 Nov 2009 04:02:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDDlG-0004Ra-Pw for grub-devel@gnu.org; Wed, 25 Nov 2009 04:02:10 -0500 Received: from [199.232.76.173] (port=46563 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDDlG-0004RX-J0 for grub-devel@gnu.org; Wed, 25 Nov 2009 04:02:06 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:60651) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDDlE-0002lw-QR for grub-devel@gnu.org; Wed, 25 Nov 2009 04:02:05 -0500 Received: by fxm5 with SMTP id 5so8141942fxm.8 for ; Wed, 25 Nov 2009 01:02:03 -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=3mZiHclQRQEy9YkazEb+WbprJtLs3nl3VE298C8zbKo=; b=pPjXFEhfN04N/cV3kS8urCHPvgYnK7wUk6N1u3diQJHV65E3I2S/7GfyavGrRjzXPT uJthfP+a0RMAaUXKrAHBnD4Ew5j4o1S1UsONlBINmxK86YY5Bd/KrmNMd4kt4unIip7l 6qsqatk2VLD46TiUyFEI5p5wFnJH3i/hcQkqk= 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=ssxWP5B3iFVyZyM9rTzNmZjzCG5vhn76vZ3wZgJcbQBaw67/Apa5/tRuodVf3bsNaS WwVIlmW9027YMrkmsu9mluyux+nipxRaJwGzqxtQaLjIMAj2I8JipY+1IuApCC2A6fEm UY9gL+x9WISE5py3Z80jo78j7s62h2UP5evw0= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.239.139.89 with SMTP id s25mr780174hbs.113.1259139723090; Wed, 25 Nov 2009 01:02:03 -0800 (PST) In-Reply-To: <20091124232059.GA5332@thorin> References: <20091124121027.GA317@thorin> <20091124173555.GA32105@thorin> <20091124110646.42f051d6@svelte> <4B0C3762.9000700@gmail.com> <20091124232059.GA5332@thorin> From: Michal Suchanek Date: Wed, 25 Nov 2009 10:01:43 +0100 X-Google-Sender-Auth: e0b555c559aeceab 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: Wed, 25 Nov 2009 09:02:12 -0000 2009/11/25 Robert Millan : > On Tue, Nov 24, 2009 at 08:43:30PM +0100, Vladimir '=CF=86-coder/phcoder'= Serbinenko wrote: >> I identified number of fonts as one of the reason of gfxmenu needing >> important amount of time to load. I prefer to have few nice looking free >> fonts with reasonable unicode coverage (we'll need it because of >> gettext) and load only ones really needed >> [...] >> > I think that true bitmap fonts will look much, much better than >> > converted outline fonts, but perhaps if we added an 8-bit alpha channe= l >> > to the font format and grub-mkfont could do anti-aliasing during the >> > conversion process; then I think we could make use of all the free >> > outline fonts >> I'm ok wth doing any kind of preprocessing in grub-mkfont but grub2 has >> to remain simple in order to ensure reasonable performance even on slow >> system (curren't it's not the case and more work is needed for >> optimising it) > > I understand there's a lot of room for improvement, but it'd be interesti= ng to > start providing a basic set of fonts so that we get the ball rolling and > theme authors can beging doing their artist work. > > Has someone obtained a working multi-size setup with grub-mkfont + unifon= t? > Currently I just know that the default ascii.pf2 works (but doesn't have = any > single-size theme that would play well with it). > As I said that's pretty much impossible. unifont.ttf is just the bitmap squares recorded as outline, and even if you generate multiple sizes of bitmaps from that (and most of these are bound to be ugly bordering on useless) you still get only a single face which would not be acceptable for most theme authors. I would suggest looking at the bitmap fonts which used to be installed with X. They provide bitmaps in multiple sizes for multiple languages although the unicode coverage is much poorer than with unifont. Other thing we might try is scaling the font in grub itself. This is poor typography because proper scalable fonts are adjusted for different sizes, the outlines aren't simply scaled. However, grub has decent scaling that can be applied to images so it can be applied to fonts to get things started. Then we need 2-3 type faces in a single size which is probably much easier to get. Note that with truetype fonts most fonts (besides the crappy English-only fonts) specialize on a family of languages that use the same writing system and the glyphs for other writing systems tend to be poorly drawn or non-existent. This is understandable as no font author can possibly know how the glyphs for all the various languages fit together. This also means that - you typically have to install fonts specifically for language(s) you intend to use - glyph fallback is integral part of any decent font system. Some try to determine the nearest matching font automatically with varying success, in some systems you can specify different fonts for different unicode ranges (which are then scaled to fit together). - there is a problem with Simplified Chinese/Traditional Chinese/Japanese. Some of the glyphs used by these writing systems have the same unicode codepoint but are slightly different in each. To get these rendered correctly you need special font for each. Blame the Unicode people. Thanks Michal