📜 ⬆️ ⬇️

How to add Fixed to konsole

This issue is relevant for Debian, which still uses KDE version 3.5 and in which the konsole terminal emulator does not use Fixed fonts by default. This circumstance depressed me so much so the text with which I work in the vim editor looks decent only with this font. The problem is aggravated by the fact that this circumstance is very badly googled and in order to find a solution I had to look for information and try different settings for quite a long time. Hope this will save you time.
So, the first thing to do is to tweak the /etc/fonts/conf.avail/99-konsole.conf file so that it looks like this:

 <? xml version = "1.0"?>
 <! DOCTYPE fontconfig SYSTEM "fonts.dtd">
 <fontconfig>
 <dir> / usr / share / apps / konsole / fonts </ dir>
   <selectfont>
     <acceptfont>
       <pattern>
         <patelt name = "family">
           <string> Fixed </ string>
         </ patelt>
       </ pattern>
     </ acceptfont>
   </ selectfont>
 </ fontconfig>

Then you should install Fixed fonts and add the path to xorg.conf, (except default ones, for example ~ / .fonts).
I admit I did not find anything suitable from the Debian packages, so I just merged " media-fonts / font-misc-misc " and " media-fonts / font-sony-misc " from the Gent repository , unpacked it and put it in the ~ / folder. fonts. Do not forget to create the fonts.dir file with the mkfontdir command.
Now it remains only to update the cache of fonts (fc-cache -f -v) and everything, you can choose fonts of different grades and sizes in the settings of konsole Fixed, choosing the best one.

image

You can do without additional * -misc- * packages by limiting yourself to editing the /etc/fonts/conf.avail/99-konsole.conf file, but then it is possible that the no alternative option will be unsuccessful.

')

Source: https://habr.com/ru/post/74739/


All Articles