Add a note to the fontconfig FAQ about how to override spacing
This commit is contained in:
parent
dcfd2b8d60
commit
2fadd3e7ba
1 changed files with 20 additions and 0 deletions
20
docs/faq.rst
20
docs/faq.rst
|
|
@ -154,6 +154,26 @@ monospace. On Linux you can list all monospace fonts with::
|
|||
|
||||
fc-list : family spacing | grep spacing=100
|
||||
|
||||
Note that the spacing property is calculated by fontconfig based on actual
|
||||
glyph widths in the font. If for some reason fontconfig concludes your favorite
|
||||
monospace font does not have ``spacing=100`` you can override it by using the
|
||||
following :file:`~/.config/fontconfig/fonts.conf`::
|
||||
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<match target="scan">
|
||||
<test name="family">
|
||||
<string>Your Font Family Name</string>
|
||||
</test>
|
||||
<edit name="spacing">
|
||||
<int>100</int>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
|
||||
Then, the font will be available in ``kitty list-fonts``.
|
||||
|
||||
|
||||
How can I assign a single global shortcut to bring up the kitty terminal?
|
||||
-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue