From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LGjc4-0004a6-Td for mharc-grub-devel@gnu.org; Sat, 27 Dec 2008 19:34:36 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGjc2-0004Zr-3k for grub-devel@gnu.org; Sat, 27 Dec 2008 19:34:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGjby-0004Zd-Pp for grub-devel@gnu.org; Sat, 27 Dec 2008 19:34:32 -0500 Received: from [199.232.76.173] (port=49868 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGjby-0004Za-MT for grub-devel@gnu.org; Sat, 27 Dec 2008 19:34:30 -0500 Received: from mta-out.inet.fi ([195.156.147.13]:54690 helo=kirsi2.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LGjbx-0001x6-VK for grub-devel@gnu.org; Sat, 27 Dec 2008 19:34:30 -0500 Received: from [84.249.165.26] (84.249.165.26) by kirsi2.inet.fi (8.5.014) id 48FC5B89030C0C5F for grub-devel@gnu.org; Sun, 28 Dec 2008 02:34:26 +0200 Message-ID: <4956C98F.3030006@nic.fi> Date: Sun, 28 Dec 2008 02:34:23 +0200 From: =?UTF-8?B?VmVzYSBKw6TDpHNrZWzDpGluZW4=?= User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: The development of GRUB 2 References: <20080901092753.3918cf73@gamma.lan> <20081004214640.5ab21f53@gibibit.com> <48E87FB9.8070603@nic.fi> <20081030121106.4efffecc@gibibit.com> <20081030205736.7e080a5e@gibibit.com> <493ADE06.7080001@nic.fi> <20081222091443.7280e623@gibibit.com> <49513053.20207@nic.fi> <20081223171711.15128818@gibibit.com> In-Reply-To: <20081223171711.15128818@gibibit.com> X-Enigmail-Version: 0.95.7 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, 3) Subject: Re: [PATCH] GSoC #10 new font engine (UTF-8 support+bugfix) 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: Sun, 28 Dec 2008 00:34:34 -0000 Colin D Bennett wrote: > Well, I don't have time right now to rewrite the converter; not for a > couple of weeks, at least. I'm certainly willing to do it, so I'll get > to it when I can, and then we can replace the Java converter. While we wait for that I have here a counter patch for the font engine. If there are no comments about it in near term this will be committed to SVN. To use automatic font conversion (unifont.bdf->ascii.pf2 and unicode.pf2), install bf-utf-source (ubuntu and probably debian). Font converter uses Java temporary. So when font compilation is enable font converter will be compiled and executed. Otherwise Java is not needed in anyway. Tested with Sun Java 1.6 on x86-64. grub-mkconfig should generate new grub.cfg with changed font commands. To convert custom fonts look for ascii.pf2 in Makefile.in and use matching commands to convert your fonts. These will be documented on Wiki once committed. 2008-12-28 Colin D Bennett New font engine. =09 Additional changes by Vesa J=C3=A4=C3=A4skel=C3=A4inen to= adapt to build system and fixed gfxterm.c to work with different sized fonts. * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF. =09 * configure: Re-generated. =09 * DISTLIST: Removed font/manager.c. Added font/font.c. Added font/font_cmd.c. =09 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool compilation. =09 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users. =09 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype. * kern/term.c: Changed users of grub_utf8_to_ucs4. =09 * normal/menu.c: Likewise. =09 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c. (font_mod_SOURCES): Added font/font_cmd.c, font/font.c. =09 * include/grub/font.h: Replaced with new file. =09 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value. (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise. (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise. (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added. (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED. (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha, fg_red, fg_green, fg_blue, fg_alpha. (grub_video_adapter): Removed blit_glyph. (grub_video_blit_glyph): Removed.=09 =09 * font/manager.c: Removed file. =09 * font/font.c: New file. =09 * font/font_cmd.c: Likewise. =09 * video/video.c (grub_video_blit_glyph): Removed. =09 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support. (grub_video_vbe_map_rgba): Likewise. (grub_video_vbe_unmap_color_int): Likewise. (grub_video_vbe_blit_glyph): Removed. (grub_video_vbe_adapter): Removed blit_glyph. =09 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support. (get_pixel): Likewise. (set_pixel): Likewise. =09 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts. =09 * term/gfxterm.c: Adapted to new font engine. =09 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile. =09 * term/i386/pc/vga.c: Likewise. =09 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file. =09 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise. =09 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. =09 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise. =09 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise. =09 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise. =09 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise. =09 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise. =09 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise. * util/grub.d/00_header.in: Changed to use new loadfont command. =09 * util/grub-mkconfig_lib.in: Changed font extension.