2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>

* font/manager.c (grub_font_get_glyph): Removed font fixup from
        here...

        * util/unifont2pff.rb: ... and moved it to here.  Improved argument
        parsing to support both hex and dec ranges.  If filename was missing
        show usage information.
This commit is contained in:
chaac 2006-03-31 13:32:52 +00:00
parent bd0d7896cf
commit c2379b9c31
3 changed files with 34 additions and 10 deletions

View file

@ -184,8 +184,6 @@ grub_font_get_glyph (grub_uint32_t code,
if (offset)
{
grub_uint32_t w;
unsigned int x;
unsigned int y;
int len;
/* Make sure we can find glyphs for error messages. Push active
@ -215,11 +213,9 @@ grub_font_get_glyph (grub_uint32_t code,
remove_font (font);
goto restart;
}
/* Temporary workaround, fix font bitmap. */
for (y = 0; y < 16; y++)
for (x = 0; x < w; x++)
glyph->bitmap[y * w + x] = bitmap[x * 16 + y];
/* Fill glyph with information. */
grub_memcpy (glyph->bitmap, bitmap, w * 16);
glyph->char_width = w;
glyph->width = glyph->char_width * 8;