calibredb.el icon indicating copy to clipboard operation
calibredb.el copied to clipboard

book format not aligned when book title has Chinese characters

Open newusername2022 opened this issue 3 years ago • 1 comments

image

I found that book formats are not aligned when book titles have Chinese characters in them. This doesn't happen to English book titles.

newusername2022 avatar Jun 04 '21 03:06 newusername2022

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.

chenyanming avatar Jun 11 '21 15:06 chenyanming