]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
authorchaac <chaac@localhost>
Sat, 1 Apr 2006 19:23:01 +0000 (19:23 +0000)
committerchaac <chaac@localhost>
Sat, 1 Apr 2006 19:23:01 +0000 (19:23 +0000)
        * util/unifont2pff.rb: Removed unnecessary byte ordering.  Now
        foreign multibyte characters should be shown correctly.

ChangeLog
util/unifont2pff.rb

index 0e057107bed7f7ca7350a517fb879707201f8156..712938107e76cfcf83ca14de5bbdcac8a33b6890 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-01  Vesa Jaaskelainen  <chaac@nic.fi>
+
+       * util/unifont2pff.rb: Removed unnecessary byte ordering.  Now
+       foreign multibyte characters should be shown correctly.
+
 2006-04-01  Vesa Jaaskelainen  <chaac@nic.fi>
 
        * normal/main.c (grub_normal_menu_addentry): Fixed menu size
index b746f5cf7bf61c6e384cc124a64ae0b7c291e71f..f5f59b2bce8893167a91b90088e5841ef5529a05 100644 (file)
@@ -62,17 +62,6 @@ IO.foreach(file) do |line|
       raise "invalid bitmap size: #{bitmap}"
     end
 
-    # Fix byte ordering
-    w = (bitmap.size / 32)
-    temp = Array.new
-    for y in 0...16
-      for x in 0...w
-        temp[(y * w + x) * 2 + 0] = bitmap[(x * 16 + y) * 2 + 0].chr
-        temp[(y * w + x) * 2 + 1] = bitmap[(x * 16 + y) * 2 + 1].chr
-      end
-    end
-    bitmap = temp.to_s
-
     fonts << [code, bitmap]
   else
     raise "invalid line format: #{line}"