2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
* util/unifont2pff.rb: Removed unnecessary byte ordering. Now foreign multibyte characters should be shown correctly.
This commit is contained in:
parent
65f201ad2a
commit
70f3b2433a
2 changed files with 5 additions and 11 deletions
|
@ -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>
|
2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
|
||||||
|
|
||||||
* normal/main.c (grub_normal_menu_addentry): Fixed menu size
|
* normal/main.c (grub_normal_menu_addentry): Fixed menu size
|
||||||
|
|
|
@ -62,17 +62,6 @@ IO.foreach(file) do |line|
|
||||||
raise "invalid bitmap size: #{bitmap}"
|
raise "invalid bitmap size: #{bitmap}"
|
||||||
end
|
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]
|
fonts << [code, bitmap]
|
||||||
else
|
else
|
||||||
raise "invalid line format: #{line}"
|
raise "invalid line format: #{line}"
|
||||||
|
|
Loading…
Reference in a new issue