grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] GSoC #10 new font engine (UTF-8 support+bugfix)


From: Jerone Young
Subject: Re: [PATCH] GSoC #10 new font engine (UTF-8 support+bugfix)
Date: Fri, 2 Jan 2009 16:44:49 -0600

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ääskeläinen <address@hidden> wrote:
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  <address@hidden>

       New font engine.

       Additional changes by Vesa Jääskeläinen <address@hidden> to adapt to
       build system and fixed gfxterm.c to work with different 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_BDF.  Added Font tool
       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 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): 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: 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
address@hidden
http://lists.gnu.org/mailman/listinfo/grub-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]