安装Haroopad之后发现编辑器中输入的中文字体看不到,而右边的预览框中显示正常。然后把字体调小之后又可以正常显示。
在“文件”下打开“偏好设置”,选择编辑器,找到默认主题,点击编辑,如图:
可以看到default.css文件,修改成如下,字体根据自己喜欢修改。重新启动即可。
/**
You can only use the following style.
- color, font-family, font-style
- text-shadow
- background-*
Example:
font-family: "微软雅黑", "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, sans-serif !important;
text-shadow: 0 1px rgba(0, 0, 0, .8);
background-image: url('wood.jpg');
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
*/
editor {
font-family: "微软雅黑", "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, sans-serif !important;
}
linenumber {
font-family: "微软雅黑", "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, sans-serif !important;
}
activeline {
font-family: "微软雅黑", "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, sans-serif !important;
}
/*
You can only use the following style.
- color, font-family, font-style
- text-shadow
Example:
color: #adadad;
font-style: bold;
text-shadow: 0 1px rgba(0, 0, 0, .8);
*/
header {}
code {}
blockquote {}
li1 {}
li2 {}
li3 {}
hr {}
img {}
a {}
em {}
i {}
strong {}
注:来自http://leftcoding.com/soft/haroopad/。遇到这个问题,搜了半天才看到,所以转过来。