From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EedTF-0002ri-SQ for mharc-grub-devel@gnu.org; Tue, 22 Nov 2005 14:06:25 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EedTC-0002jK-RM for grub-devel@gnu.org; Tue, 22 Nov 2005 14:06:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EedTB-0002eU-BU for grub-devel@gnu.org; Tue, 22 Nov 2005 14:06:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EedTA-0002dI-Lt for grub-devel@gnu.org; Tue, 22 Nov 2005 14:06:20 -0500 Received: from [157.24.2.30] (helo=smtp1.cc.lut.fi) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EedTA-0000jk-97 for grub-devel@gnu.org; Tue, 22 Nov 2005 14:06:20 -0500 Received: from localhost (smtp1 [127.0.0.1]) by smtp1.cc.lut.fi (Postfix) with ESMTP id B5CAB70041 for ; Tue, 22 Nov 2005 21:06:17 +0200 (EET) Received: from smtp1.cc.lut.fi ([127.0.0.1]) by localhost (smtp1.cc.lut.fi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09947-07 for ; Tue, 22 Nov 2005 21:06:17 +0200 (EET) Received: from [192.168.1.100] (lk4-a-4-1.lnet.lut.fi [157.24.102.107]) by smtp1.cc.lut.fi (Postfix) with ESMTP id 1ED347001F for ; Tue, 22 Nov 2005 21:06:16 +0200 (EET) Message-ID: <43836C33.5090508@nic.fi> Date: Tue, 22 Nov 2005 21:06:27 +0200 From: =?UTF-8?B?VmVzYSBKw6TDpHNrZWzDpGluZW4=?= User-Agent: Thunderbird 1.4.1 (Windows/20051006) MIME-Version: 1.0 To: The development of GRUB 2 References: <435B72E9.6070603@nic.fi> <43622EAE.3000604@nic.fi> <437D1001.8090603@nic.fi> <200511181206.49374.okuji@enbug.org> In-Reply-To: <200511181206.49374.okuji@enbug.org> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=UTF-8 X-Virus-Scanned: by lut.fi Content-Transfer-Encoding: quoted-printable Subject: Re: Video subsystem draft X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2005 19:06:23 -0000 Yoshinori K. Okuji wrote: > On Friday 18 November 2005 12:19 am, Vesa J=C3=A4=C3=A4skel=C3=A4inen w= rote: >> What is the procedure to generate font file to font manager? Or should= I >> just add some functionality to import VGA font to font manager. >=20 > First, download unifont.hex from .=20 > Then, convert it with util/unifont2pff.rb. If you invoke this script wi= th no=20 > argument, you can a short summary of the usage. Let's say, you store th= e font=20 > in unifont.pff, then the command is "ruby util/unifont2pff.rb unifont.h= ex >=20 > unifont.pff". Now you can put this generated file under /boot/grub, and= load=20 > it by the command "font". >=20 > You can also specify specific code ranges to unifont2pff.rb, if you nee= d only=20 > a subset of supported glyphs. This is necessary if you want to use the=20 > ancient technology called "floppy". I think it can be gzipped to fit more nicely :).. (and it seems to work too). But even without gzipping it, I am having some problems with it. I don't think this is a problem in font manager. > Honestly, I haven't tried the font manager for a long time. So I won't = be=20 > surprised even if I hear it is not working well. But last time I tried = it (it=20 > was not GRUB 2, but PUPA), it worked well and I saw a menu with Japanes= e=20 > titles. After something calls grub_error first read from font file fails, with grub_file_read() =3D=3D -1. Now this causes font manager to drop font fro= m memory. If I disable feature that I can see that first character is invalid and others come nicely. In case of "error: ..." first 'e' is corrupt and rest is ok. I am not sure is this really issue in grub_error itself but it is in sequence when problem shows up. I can't find problem in font manager, even the offset that is tries to seek is within limits of the file (and correct) and there is enough bytes left in file in order to successfully complete the read. I can send tarred version of grub2 with video subsystem if someone wants to help on this one. I will continue to search for possible problems in case I can pinpoint and fix it. Is the font file using some standard format or can it's contents be changed? Bitmap data for fonts could be placed in better order to more easily to render it (currently I modify byte order before giving it to glyph renderer). (My guess is that it is [P]upa [F]ont [F]ormat or file)