calibredb.el
calibredb.el copied to clipboard
book format not aligned when book title has Chinese characters

I found that book formats are not aligned when book titles have Chinese characters in them. This doesn't happen to English book titles.
Currently the font alignment is not handled by calibredb.el.
You should set up and use fixed width font, such as Sarasa Term SC
for chinese.
(defun calibredb-font-setup ()
(setq buffer-face-mode-face '(:family "Sarasa Term SC" :height 135))
(buffer-face-mode))
(add-hook 'calibredb-search-mode-hook 'calibredb-font-setup)
Please notice, not all height values have the same fixed width, 135/150 are tested ok.
There are still other things that may not be aligned, such as icons, unicode and emoji.