From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LIslF-0002kY-7n for mharc-grub-devel@gnu.org; Fri, 02 Jan 2009 17:44:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LIslD-0002k3-7W for grub-devel@gnu.org; Fri, 02 Jan 2009 17:44:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LIslA-0002jL-W7 for grub-devel@gnu.org; Fri, 02 Jan 2009 17:44:54 -0500 Received: from [199.232.76.173] (port=60817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIslA-0002jI-QS for grub-devel@gnu.org; Fri, 02 Jan 2009 17:44:52 -0500 Received: from mu-out-0910.google.com ([209.85.134.184]:64421) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LIsl9-00030Y-Vj for grub-devel@gnu.org; Fri, 02 Jan 2009 17:44:52 -0500 Received: by mu-out-0910.google.com with SMTP id i2so2938225mue.6 for ; Fri, 02 Jan 2009 14:44:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=ozAuKRFEEY1tHdVeQoNH4v2lrqxI8Nf7oe2xPcSB448=; b=LNRQCRooR8j6xKM0eu4SIpAEU/9l2D+4julDwn+yUqrfCuVo8jT3QLET7cyDM7Whd1 t1SuEAG6YwfXcIFZWDHBK7a+useHxnPsEmWPuEiAqsMWu1vLf/YHkF2yUzjHxanO6du0 Utk8Ws8HolFo4XvQw6fieuZ6KQDGwVX3QwxYk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=b8UsXApDq3yAGkkZ9iAuD3km1sCpC0gbRmFlxYBfhi/GurdyLNeJkDAfETQScT6s5W 4nzvD+9m+L+ZZR3U42sJ1j2m88c8YNYTsmcJ/+XwnPCfwoyRa8DSEAF505/z6OS3ENgi A2TkCHO5Dd1z93Kyi8b9cVbcRxTUivxiGst4E= Received: by 10.103.245.18 with SMTP id x18mr6532797mur.62.1230936289707; Fri, 02 Jan 2009 14:44:49 -0800 (PST) Received: by 10.103.167.20 with HTTP; Fri, 2 Jan 2009 14:44:49 -0800 (PST) Message-ID: <9f50a7a00901021444j486addd5he087dd8896afdf87@mail.gmail.com> Date: Fri, 2 Jan 2009 16:44:49 -0600 From: "Jerone Young" To: "The development of GRUB 2" In-Reply-To: <4956C98F.3030006@nic.fi> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_126633_29310138.1230936289699" 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> <4956C98F.3030006@nic.fi> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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: Fri, 02 Jan 2009 22:44:55 -0000 ------=_Part_126633_29310138.1230936289699 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I just paid attention to this (sorry). So everything seems fine. But the dependency on a proprietary java stack to generate fonts isn't good. Does it happen to work with gcc java ? On Sat, Dec 27, 2008 at 6:34 PM, Vesa J=E4=E4skel=E4inen wro= te: > 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. > > Additional changes by Vesa J=E4=E4skel=E4inen to ad= apt to > build system and fixed gfxterm.c to work with different sized font= s. > > * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF. > > * configure: Re-generated. > > * DISTLIST: Removed font/manager.c. > Added font/font.c. > Added font/font_cmd.c. > > * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font too= l > compilation. > > * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. > Changed > users. > > * kern/misc.c (grub_utf8_to_ucs4): Changed prototype. > > * kern/term.c: Changed users of grub_utf8_to_ucs4. > > * normal/menu.c: Likewise. > > * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c. > (font_mod_SOURCES): Added font/font_cmd.c, font/font.c. > > * include/grub/font.h: Replaced with new file. > > * 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. > > * font/manager.c: Removed file. > > * font/font.c: New file. > > * font/font_cmd.c: Likewise. > > * video/video.c (grub_video_blit_glyph): Removed. > > * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit suppor= t. > (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. > > * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support. > (get_pixel): Likewise. > (set_pixel): Likewise. > > * commands/videotest.c (grub_cmd_videotest): Added more tests for > fonts. > > * term/gfxterm.c: Adapted to new font engine. > > * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile. > > * term/i386/pc/vga.c: Likewise. > > * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file= . > > * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise. > > * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: > Likewise. > > * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: > Likewise. > > * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise= . > > * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise. > > * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise. > > * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: > Likewise. > > * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewis= e. > > * util/grub.d/00_header.in: Changed to use new loadfont command. > > * util/grub-mkconfig_lib.in: Changed font extension. > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > ------=_Part_126633_29310138.1230936289699 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I just paid attention to this (sorry). So everything seems fine. But the de= pendency on  a proprietary java stack  to generate fonts isn'= t good. Does it happen to work with gcc java ?


On Sat, Dec 27, 2008 at 6:34 PM, Vesa J=E4=E4skel=E4inen = <chaac@nic.fi> wrote:
<= blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 2= 04, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Colin D Bennett wrote:
> Well, I don't have time right now to rewrite the converter; not fo= r a
> couple of weeks, at least.  I'm certainly willing to do it, s= o 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 engin= e.

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  <colin@gibibit.com>

       New font engine.

       Additional changes by Vesa J=E4=E4skel=E4inen &= lt;chaac@nic.fi> to adapt to
       build system and fixed gfxterm.c to work with d= ifferent sized fonts.

       * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.

       * configure: Re-generated.

       * DISTLIST: Removed font/manager.c.
       Added font/font.c.
       Added font/font_cmd.c.

       * Makefile.in: Changed UNIFONT_HEX to UNIFONT_B= DF.  Added Font tool
       compilation.

       * include/grub/misc.h (grub_utf8_to_ucs4): Chan= ged prototype.  Changed
users.

       * kern/misc.c (grub_utf8_to_ucs4): Changed prot= otype.

       * kern/term.c: Changed users of grub_utf8_to_uc= s4.

       * normal/menu.c: Likewise.

       * conf/common.rmk (font_mod_SOURCES): Removed f= ont/manager.c.
       (font_mod_SOURCES): Added font/font_cmd.c, font= /font.c.

       * include/grub/font.h: Replaced with new file.<= br>
       * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_AL= PHA): Changed value.
       (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewis= e.
       (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.

       * font/manager.c: Removed file.

       * font/font.c: New file.

       * font/font_cmd.c: Likewise.

       * video/video.c (grub_video_blit_glyph): Remove= d.

       * 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.
       * video/i386/pc/vbeutil.c (get_data_ptr): Added= 1-bit support.
       (get_pixel): Likewise.
       (set_pixel): Likewise.

       * commands/videotest.c (grub_cmd_videotest): Ad= ded more tests for fonts.

       * term/gfxterm.c: Adapted to new font engine.
       * term/i386/pc/vesafb.c: Marked as deprecated. =  Made it compile.

       * term/i386/pc/vga.c: Likewise.

       * util/fonttool/src/org/gnu/grub/fonttool/BDFLo= ader.java: New file.

       * util/fonttool/src/org/gnu/grub/fonttool/CharD= efs.java: Likewise.

       * util/fonttool/src/org/gnu/grub/fonttool/Chara= cterRange.java: Likewise.

       * util/fonttool/src/org/gnu/grub/fonttool/Chara= cterRange.java: Likewise.

       * util/fonttool/src/org/gnu/grub/fonttool/Conve= rter.java: Likewise.

       * util/fonttool/src/org/gnu/grub/fonttool/Font.= java: Likewise.

       * util/fonttool/src/org/gnu/grub/fonttool/Glyph= .java: Likewise.

       * util/fonttool/src/org/gnu/grub/fonttool/PFF2S= ections.java: Likewise.

       * util/fonttool/src/org/gnu/grub/fonttool/PFF2W= riter.java: Likewise.

       * util/grub.d/00_header.in: Changed to use new loadfont command.

       * util/grub-mkconfig_lib.in: Changed font extension.



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

------=_Part_126633_29310138.1230936289699--