I'm trying out doom emacs for the first time (previously was using spacemacs). I've run into an issue where chinese characters are not aligned in org mode tables. For example:
| Character | Pingyin | Meaning | |-----------+-------------+--------------------------| | 好 | hao | good | | 早上 | zaoshang | morning | | 晚上 | wanshang | evning | | 对不起 | dui bu qi | to be sorry | | 没关系 | mei guan xi | that's ok/doesn't matter | | 不 | bu | no | | 不客气 | bu ke qi | you're welcome | | 在见 | zaijian | see you around | | | | |
I've read online that this can be resolved by setting the width of chinese characters to double the width of asci characters, but I'm not sure how to do this. In spacemacs the issue is fixed with the following line in config:
(spacemacs//set-monospaced-font "Source Code Pro" "Hiragino Sans GB" 15 18)
I'm trying to do something similar in doom:
(setq doom-font (font-spec :family "Source Code Pro" :size 15 :weight 'normal :width 'normal) doom-big-font (font-spec :family "Source Code Pro" :size 26)) (dolist (charset '(kana han cjk-misc bopomofo)) (set-fontset-font (frame-parameter nil 'font) charset (font-spec :family "Source Code Pro" :size 18)))
But, it's not working. Would appreciate any help!