本帖最后由 789456qwe 于 2016-2-25 21:07 编辑
font = Win32API.new('gdi32','AddFontResourceA','p','L') sendmsg = Win32API.new('user32','SendMessageA','l,l,l,l','L') unless Font.exist?("经典隶变简") font.call("fonts/字体名称.TTF") sendmsg.call(65535,29,0,0) print("字体安装完毕,请重新启动游戏!") exit end
font = Win32API.new('gdi32','AddFontResourceA','p','L')
sendmsg = Win32API.new('user32','SendMessageA','l,l,l,l','L')
unless Font.exist?("经典隶变简")
font.call("fonts/字体名称.TTF")
sendmsg.call(65535,29,0,0)
print("字体安装完毕,请重新启动游戏!")
exit
end
|