Update the anti-aliasing section:
- add infos about fc-cache - add a fix for Helvetica fonts - add some missing end XML tags to local.font PR: docs/52250 Submitted by: marcus
This commit is contained in:
parent
5cd809bf5f
commit
8ff5a70ed7
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=16958
1 changed files with 25 additions and 0 deletions
|
|
@ -759,6 +759,12 @@ EndSection</programlisting>
|
|||
|
||||
<programlisting><dir>/path/to/my/fonts</dir></programlisting>
|
||||
|
||||
<para>After adding new fonts, and especially new font directories,
|
||||
you should run the following command to rebuild the font
|
||||
caches:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>fc-cache -f</userinput></screen
|
||||
|
||||
<para>Anti-aliasing makes borders slightly fuzzy, which makes very
|
||||
small text more readable and removes <quote>staircases</quote> from
|
||||
large text, but can cause eyestrain if applied to normal text. To
|
||||
|
|
@ -786,6 +792,7 @@ EndSection</programlisting>
|
|||
<programlisting> <match target="pattern" name="family">
|
||||
<test qual="any" name="family">
|
||||
<string>fixed</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign">
|
||||
<string>mono</string>
|
||||
</edit>
|
||||
|
|
@ -793,6 +800,7 @@ EndSection</programlisting>
|
|||
<match target="pattern" name="family">
|
||||
<test qual="any" name="family">
|
||||
<string>console</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign">
|
||||
<string>mono</string>
|
||||
</edit>
|
||||
|
|
@ -804,11 +812,28 @@ EndSection</programlisting>
|
|||
<programlisting> <match target="pattern" name="family">
|
||||
<test qual="any" name="family">
|
||||
<string>mono</string>
|
||||
</test>
|
||||
<edit name="spacing" mode="assign">
|
||||
<int>100</int>
|
||||
</edit>
|
||||
</match> </programlisting>
|
||||
|
||||
<para>Certain fonts, such as Helvetica, may have a problem when
|
||||
anti-aliased. Usually this manifests itself as a font that
|
||||
seems cut in half vertically. At worst, it may cause
|
||||
applications such as <application>Mozilla</application> to
|
||||
crash. To avoid this, consider adding the following to
|
||||
<filename>local.conf</filename>:</para>
|
||||
|
||||
<programlisting> <match target="pattern" name="family">
|
||||
<test qual="any" name="family">
|
||||
<string>Helvetica</string>
|
||||
</test>
|
||||
<edit name="family" mode="assign">
|
||||
<string>sans-serif</string>
|
||||
</edit>
|
||||
</match> </programlisting>
|
||||
|
||||
<para>Once you have finished editing
|
||||
<filename>local.conf</filename> make sure you end the file
|
||||
with the </fontconfig> tag. Not doing this will cause
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue