| 赞 | 2 |
| VIP | |
| 好人卡 | |
| 积分 | 4 |
| 经验 | |
| 最后登录 | 2026-1-12 |
| 在线时间 | 144 小时 |
- 梦石
- 0
- 星屑
- 369
- 在线时间
- 144 小时
- 注册时间
- 2013-6-23
- 回帖
- 71

|
楼主 |
发表于 2013-6-27 09:15:48
|
显示全部楼层
本帖最后由 Q_Lucky 于 2013-6-27 09:25 编辑
yiu889 发表于 2013-6-26 23:18 
自动安装字体脚本在哪兒~
這東西對我們非同語區玩家來說是福音呀~~~
似乎有问题。。在更新后被我去除了。
另外,RMVA只要在目录新建一个fonts文件夹,在main中修改字体后把字体放进去不用安装就可以直接使用了。
原脚本内容如下:- dir = Win32API.new('kernel32','GetSystemDirectory','p,l','l')
- dir_str = " " * 256
- dir.call(dir_str,255)
- dir_str = dir_str.split('system')[0]
- font_name = "DFGirl.ttf"
- font_chn_name = "华康少女字体"
- if FileTest.exist?(font_name)
- copy = Win32API.new('kernel32',"CopyFileA",'p,p,l','')
- copy.call(font_name, "#{dir_str}Fonts/#{font_name}",0)
- font = Win32API.new('gdi32','AddFontResourceA','p','l')
- sendmsg = Win32API.new('user32','SendMessageA','l,l,l,l','l')
- unless Font.exist?("DFGirl") or Font.exist?(font_chn_name)
- font.call(font_name)
- sendmsg.call(65535,29,0,0)
- retry
- end
- end
复制代码 PS:这个脚本貌似是在xp中使用的。。。 |
|