看板 Ruby 關於我們 聯絡資訊
※ 引述《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
danny8376:檔案位置fxri-0.3.7這部分看你的fxri版本而定 07/27 22:45
ducksteven:這個呢 http://www.7yue.com/post/66.html 07/28 00:16