Received: from list by monty-python.gnu.org with archive (Exim 4.34) id 1BPipn-0007Tu-IJ for mharc-grub-devel@gnu.org; Mon, 17 May 2004 10:11:15 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BPipi-0007S2-Db for grub-devel@gnu.org; Mon, 17 May 2004 10:11:10 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BPhJi-0001c3-OG for grub-devel@gnu.org; Mon, 17 May 2004 08:34:35 -0400 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPgbE-0004g3-K6 for grub-devel@gnu.org; Mon, 17 May 2004 07:48:05 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 4C310140000E4 for ; Mon, 17 May 2004 07:47:58 -0400 (EDT) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Mon, 17 May 2004 13:51:34 +0200 User-Agent: KMail/1.5.3 References: <200405160119.11048.shivramk@sancharnet.in> In-Reply-To: <200405160119.11048.shivramk@sancharnet.in> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200405171351.35000.okuji@enbug.org> Subject: Re: Issues in implementing VESA support X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.4 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: Mon, 17 May 2004 14:11:12 -0000 On Saturday 15 May 2004 21:49, Shivram Khandeparker wrote: > 1. What happened to get_vbe_controller_info and get_vbe_mode_info? > They dont seem to be there in grub2. Which means il have to rewrite > them. Which should be just a copy paste from grub legacy.. right? If > i do write them then where do i put theses functions. In my own files > or in say startup.s (like vga does) ? If you need to write an assembly in real mode, startup.S is the right place. If you think your code is too big to include it in startup.S, you can make another file and have startup.S to include it. The code in GRUB Legacy is written by me. So you can freely copy it to GRUB 2. No problem. > 2. In my pacth i was using custom a font which was compiled into > grub. Since the new grub has a font manager i would like to use that > instead. Could somebody please provide me more info on using this > font manager, like the kind of font file it uses, does it use bitmap > fonts . And how do i access the font data once the font file is > loaded. There is no documentation for this font manager, so I describe it here in brief. It supports a bitmap font which includes an index table. A font file must have this structure: The 4-byte magic word ("PPF\x7f") The number of glyphs (little-endian, 4 bytes integer) An index table glyphs An index table consists of entries in this format: Character code in Unicode (little-endian, 4 bytes integer) Offset of the glyph from the beginning of the file (little-endian, 4 bytes integer) Each glyph is like this: Width in 8-pixel unit (1 or 2) Bitmap For now, the font manager supports only 8x16 and 16x16 font sizes. If you don't like this font manager, feel free to make a better one yourself. Once you make a font file, you can use it by the command "font". Okuji