syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.69k stars 4.89k forks source link

Fixed font with Cyrillic support #13333

Closed AleXoundOS closed 7 months ago

AleXoundOS commented 4 years ago

Want to use Fixed family font in spacemacs.

If I set:

dotspacemacs-default-font '("-Misc-Fixed-Medium-R-Normal--13-120-75-75-C-70-ISO10646-1"
                           :powerline-scale 1.1)

it works for Latin charset, but not for Cyrillic. For, example, it looks like this. Latin characters are in 7x13, but Cyrillic appear in 12x13, apparently.


OS: NixOS 19.09.1320.4ad6f1404a8 (Loris) emacs: GNU Emacs 26.3 spacemacs: develop branch

AleXoundOS commented 4 years ago

Solution is to add

  (set-fontset-font t 'unicode  "-Misc-Fixed-Medium-R-Normal--13-120-75-75-C-70-ISO10646-1" nil 'prepend)

to user-init section of spacemacs configuration.

Correct 7x13 Cyrillic font display: .

AleXoundOS commented 3 years ago

After some upgrades of emacs and other system packages the required expression in user-init has changed to:

  (set-fontset-font "fontset-default" 'unicode
                    "-Misc-Fixed-Medium-R-Normal-nil-13-120-75-75-C-70-*-*" nil 'prepend)

At the same time the dotspacemacs-default-font option has to be set to one of:


P.S. Still, I think this is the best programming font suited for 14″ displays.

AleXoundOS commented 2 years ago

The workaround no longer works. At least with emacs 27.1, 27.2, 28.0.90, 29.0.50. But most likely the problem is connected with some system libraries.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!