安装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 {}
重启好了,现在可以在编辑区输入中文了,问题解决.