問題環境
- OS-->ubuntu20.04
- typora-->0.9.98
問題描述
大概問題是在某一個版本的升級之后typora在ubuntu中的字體就變成了非常扎眼的宋體字,效果大概如下圖所示:

解決方案
要解決這個問題只需要在對應主題的css文件中加入ubuntu默認的中文字體就可以。在typora中依次點擊文件->偏好設置->外觀->打開主題文件夾,打開Typora的主題配置文件,拿我常用的night主題舉例,打開文件夾中的night.css,在其中搜索font-family字符串,選擇h6結構塊中的值,在其末尾添加ubuntu默認的中文字體Noto Sans CJK SC就可以,css代碼塊粘貼如下:
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Lucida Grande", "Corbel", sans-serif, "Noto Sans CJK SC";
font-weight: normal;
clear: both;
-ms-word-wrap: break-word;
word-wrap: break-word;
margin: 0;
padding: 0;
color: #DEDEDE
}
保存再重啟就可以了。

