查看: 4488|回复: 4

[已经解决] 新手求问字体问题,日文

  [复制链接]
梦石
0
星屑
520
在线时间
9 小时
注册时间
2011-9-5
回帖
2
发表于 2011-9-8 11:16:12 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 hariel 于 2011-9-8 11:16 编辑

日文游戏字体不能显示

看各个帖子说,应该可以改MAIN的字体,日文版本的怎么改?

#==============================================================================
# ■ Main
#------------------------------------------------------------------------------
#  各クラスの定義が終わった後、ここから実際の処理が始まります。
#==============================================================================

unless Font.exist?("UmePlus Gothic")
  print "UmePlus Gothic フォントが見つかりません。"
  exit
end

begin
  Graphics.freeze
  $scene = Scene_Title.new
  $scene.main while $scene != nil
  Graphics.transition(30)
rescue Errno::ENOENT
  filename = $!.message.sub("No such file or directory - ", "")
  print("ファイル #{filename} が見つかりません。")
end
梦石
0
星屑
4209
在线时间
1870 小时
注册时间
2010-12-21
回帖
2166
发表于 2011-9-8 13:32:48 | 显示全部楼层
本帖最后由 黄亦天 于 2011-9-8 13:33 编辑
  1. unless Font.exist?("字体")
  2. # unless Font.exist?("UmePlus Gothic") 貌似这行就是了?
复制代码

点评

表吐槽 = = 我只知道UmePlus Gothic是个字体而已 = =  发表于 2011-9-8 19:32
没文化真可怕= =  发表于 2011-9-8 17:44
绿坝娘素材库企划

素材库获取方法:暂时中止,需求者私聊。
回复

使用道具 举报

梦石
0
星屑
48
在线时间
678 小时
注册时间
2010-8-11
回帖
1427
发表于 2011-9-8 19:06:28 | 显示全部楼层
  1. #==============================================================================
  2. # ** Main
  3. #------------------------------------------------------------------------------
  4. #  After defining each class, actual processing begins here.
  5. #==============================================================================

  6. begin
  7.   Graphics.freeze
  8.   $scene = Scene_Title.new
  9.   $scene.main while $scene != nil
  10.   Graphics.transition(30)
  11. rescue Errno::ENOENT
  12.   filename = $!.message.sub("No such file or directory - ", "")
  13.   print("Unable to find file #{filename}.")
  14. end
复制代码
英文Main路过……字体神马的都是浮云
小艾工作室开张= =
回复

使用道具 举报

(?????)

梦石
0
星屑
872
在线时间
1327 小时
注册时间
2011-7-18
回帖
3036

贵宾

发表于 2011-9-9 02:10:21 | 显示全部楼层
本帖最后由 各种压力的猫君 于 2011-9-10 15:08 编辑

begin 下面加一句:
  1. Font.default_name = ["方正准圆_GBK"]
复制代码
方正准圆_GBK 换成你有的字体名
  1. unless Font.exist?("UmePlus Gothic")
  2.   print "UmePlus Gothic フォントが見つかりません。"
  3.   exit
  4. end
复制代码
这段是检测UmePlus Gothic字体是否存在,直接喀嚓掉这段就行了 - -

评分

参与人数 1星屑 +200 梦石 +2 收起 理由
「旅」 + 200 + 2 认可答案

查看全部评分

回复

使用道具 举报

梦石
0
星屑
65
在线时间
306 小时
注册时间
2009-8-21
回帖
99
发表于 2011-9-9 23:02:00 | 显示全部楼层
  1. #==============================================================================
  2. # ■ Main
  3. #------------------------------------------------------------------------------
  4. #  各定义结束后,从这里开始实际处理。
  5. #==============================================================================

  6. # 一些常用的字体
  7. Font.default_name = ["SimHei", "黑体", "DFKai-SB", "標楷體", "Verdana", "Arial Unicode MS"]
  8. begin
  9.   Graphics.freeze
  10.   $scene = Scene_Title.new
  11.   $scene.main while $scene != nil
  12.   Graphics.transition(30)
  13. rescue Errno::ENOENT
  14.   filename = $!.message.sub("无此文件或文件夹 - ", "")
  15.   print("无法找到文件 #{filename}.")
  16. end
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部