Re: [問題] fxri 字型大小可以調整嗎?

看板Ruby作者 (釣到一隻猴子@_@)時間16年前 (2009/07/27 22:41), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串2/2 (看更多)
※ 引述《goodplace (hello)》之銘言: : 環境: : Ruby 1.8.6 : 狀況: : fxri-a graphical interface to the Ruby documentation : 有人用過fxri嗎? : 請問字型大小可以調整嗎? : 字太小 看到眼睛快瞎了 XD 會很小嗎= = 到ruby安裝路徑下lib\ruby\gems\1.8\gems\fxri-0.3.7\fxri.rb 找到 def load_font(font_array) # load default font font = nil font_array.detect do |name| next if FXFont.listFonts(name).empty? font = FXFont.new(FXApp::instance, name, $cfg.app.font.size) end font end 替換成 def load_font(font_array) # load default font font = nil ##################################### addsize = 30 # 在此修改增加字體大小 # ##################################### font_array.detect do |name| next if FXFont.listFonts(name).empty? font = FXFont.new(FXApp::instance, name, $cfg.app.font.size + addsize) end font end 上面的addsize請自行修改 除非你打算讓字體大小+30 = = 那反而會更糟 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.60.202.40

07/27 22:45, , 1F
檔案位置fxri-0.3.7這部分看你的fxri版本而定
07/27 22:45, 1F

07/28 00:16, , 2F
07/28 00:16, 2F
文章代碼(AID): #1ARRoN2t (Ruby)
文章代碼(AID): #1ARRoN2t (Ruby)