|
因为觉得启动菜单的字太小,我替换了大字号的pf2字体,替换后菜单边框却有些错位,请问如何解决?
unicode.pf2是用simsun.ttc生成的。
set timeout=10
set default="0"
insmod all_video
insmod vbe
insmod vga
#insmod video_bochs
#insmod video_cirrus
insmod font
insmod gfxterm
insmod gfxmenu
insmod gettext
insmod jpeg
insmod png
#加载unicode字体显示中文
font=/boot/grub2/fonts/unicode.pf2
if loadfont ${font}; then
set locale_dir=/boot/grub2/locale
set lang=zh_cn
fi
#设置分辨率
set gfxmode=auto
#set gfxmode=640x480
terminal_output gfxterm
set color_normal=white/black
set color_highlight=blue/yellow
#设置主题或背景图片
#if search --no-floppy -f /boot/grub2/themes/stylishdark/theme.txt; then
# set theme=/boot/grub2/themes/stylishdark/theme.txt
#else
# background_image /boot/grub2/background.png
# set color_normal=red/black
# set color_highlight=magenta/black
#fi
menuentry "重启计算机" {
reboot
}
menuentry "关闭计算机" {
halt
} |
|