Skip to content

Commit

Permalink
Mac判定がうまく動かないようなのでフォント調整機能にする
Browse files Browse the repository at this point in the history
  • Loading branch information
Narazaka committed Apr 20, 2018
1 parent a33dd5d commit acef4a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $ seedtable to -s db/seeds -x doc foo.xlsx -o newdoc

を入力してから、「yml -> xlsx」、「xlsx -> yml」それぞれをダブルクリックするか、xlsxファイルをドラッグ&ドロップして変換できます。

Linuxでの起動は`LANG=ja_JP mono seedtable-gui.exe`、Macでは`LANG=ja_JP mono --arch=32 seedtable-gui.exe`と32bitを指定して起動してください
Linuxでの起動は`LANG=ja_JP mono seedtable-gui.exe`、Macでは`LANG=ja_JP GUIFONT="Hiragino Kaku Gothic Pro" mono --arch=32 seedtable-gui.exe`と32bit/フォントを指定して起動してください

設定ファイルは下記のように、seedtable.exeのオプションのうちinput/output系を除いた長いオプション名をyamlで設定するものです。

Expand Down
3 changes: 2 additions & 1 deletion seedtable-gui/BaseForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
namespace seedtable_gui {
public abstract class BaseForm : Form {
public BaseForm() {
if (Environment.OSVersion.Platform == PlatformID.MacOSX) Font = new Font("Hiragino Kaku Gothic Pro", Font.Size);
var font = Environment.GetEnvironmentVariable("GUIFONT");
if (font != null) Font = new Font(font, Font.Size);
}
}
}

0 comments on commit acef4a3

Please sign in to comment.