Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NDFno-0004og-2o for mharc-grub-devel@gnu.org; Wed, 25 Nov 2009 06:12:52 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDFnk-0004kz-6g for grub-devel@gnu.org; Wed, 25 Nov 2009 06:12:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDFnd-0004hR-NG for grub-devel@gnu.org; Wed, 25 Nov 2009 06:12:45 -0500 Received: from [199.232.76.173] (port=41406 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDFnd-0004hH-GV for grub-devel@gnu.org; Wed, 25 Nov 2009 06:12:41 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:36512) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDFnc-0006oT-ET for grub-devel@gnu.org; Wed, 25 Nov 2009 06:12:40 -0500 Received: by fxm5 with SMTP id 5so8240498fxm.8 for ; Wed, 25 Nov 2009 03:12:39 -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=uJip1+m1UZgOOsoV3DUwir0HRneCTxgF/0nxSSsoL4g=; b=QWr/K1WK8HljxSHFjAwcj/7b/+iXwL/ZK52QjmY3JWAWN1M57kB7SyWTHKPpEaevDb FyB243PckrEsZndXNDdvuC+Tw4Zna9I/JVBMobc9m5VfL9UO4QkcdACHf7MJOGNynFWt UsmdbwyLe0onkTazaHx4juL/g78iGr9bpoi0U= 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=btiHxbZgpo+onMY8bnh+nTXJ042CPR5ZPTBWJUPndSn1ztr6IZhssmLFjl1v6DlSw5 XJQr3qYxxoZiUs6hggIgypg+9ecMC1ut+M0Mr6ylyNn+aYI20Pihl9+AK/z0XvQ6aLNU 8xSHDlsxz1UXDVArX4cVoVny1rIU8Xj4ocgPA= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.239.190.216 with SMTP id y24mr832389hbh.185.1259147559152; Wed, 25 Nov 2009 03:12:39 -0800 (PST) In-Reply-To: <4B0D07BB.9060400@gmail.com> References: <20091124121027.GA317@thorin> <20091124173555.GA32105@thorin> <20091124110646.42f051d6@svelte> <4B0C3762.9000700@gmail.com> <20091124232059.GA5332@thorin> <4B0D07BB.9060400@gmail.com> From: Michal Suchanek Date: Wed, 25 Nov 2009 12:12:18 +0100 X-Google-Sender-Auth: 48d33f265085ee78 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 11:12:49 -0000 2009/11/25 Vladimir '=CF=86-coder/phcoder' Serbinenko : > Michal Suchanek wrote: >> >> 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. >> > Your statements are contradictory. First you say that scaling is bad and > shouldn't be used in grub-mkfont but then you tell to use the same > approach in grub. The difference is that the font is only a bitmap whereas scaling inside grub can do blending which should give much better results than scaling bitmap into another bitmap. > The best way to choose between pre-scaling and scaling in grub is > benchmarking. Multiple fonts take longer to load but scaling even with > caching is likely to cause more performance hit. > How much fonts does an author need? We need either decrease number of > fonts simultaneously used or have faster font loader (both in preference)= . > As Robert said most important is to get things going and theme creators > can use other free fonts as well Typically people want at the very least - serif font - sans-serif font - multiple sizes of the above so that the menu can have a larger title / be scaled to different screen sizes Sure, some would want their exact font in which the logo of their distribution is writen but this is outside of scope of Grub. >> =C2=A0- 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. >> >> > Let's not get into Unihan flamewar. There are other problems with other > languages which are more serious. Here are few of them: > 1) combining diacritics. > 2) ligatures. Important for indic languages > 3) context variants. Important for Arabic writing system. > 4) bidi. Important for Hebrew and Arabic writing system. > > Generally current gfxterm is pretty much unsuited for any of these 4 > problems. And gotoxy is pretty ambiguous in bidi context > Few useful links: > http://en.wikipedia.org/wiki/Help:Multilingual_support > http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Unicode/Test/arabe > Not being able to use combining diacritics sucks. Does that mean that grub won't be able to draw decomposed Unicode strings? Either way the four points above are things that gfxterm simply does not support whereas Unihan flamewars are inherent feature of Unicode and the gfxterm technically should be able to display CJK languages given a good enough font. Also if worse comes to worst Indic, Arabic or Hebrew can be feasibly written in Latin, Chinese cannot. Thanks Michal