Migliorare l'aspetto dei font: differenze tra le versioni

Aggiunta box informativi e commenti nei file di config.
m (Correzioni di forma)
(Aggiunta box informativi e commenti nei file di config.)
Riga 26: Riga 26:
<match target="font">
<match target="font">


<!-- Font rasterization converts vector font data to bitmap data so that it can be displayed.
<!-- Font rasterization converts vector font data to bitmap data so that it
    The result can appear jagged due to aliasing.
    can be displayed. The result can appear jagged due to aliasing.
     Anti-aliasing increases the apparent resolution of font edges. -->
     Anti-aliasing increases the apparent resolution of font edges. -->
<edit mode="assign" name="antialias">
<edit mode="assign" name="antialias">
Riga 33: Riga 33:
</edit>
</edit>


<!-- Using normal hinting, TrueType hinting instructions in the font are interpreted by
<!-- Using normal hinting, TrueType hinting instructions in the font are
    freetype's Byte-Code Interpreter. This works best for fonts with good hinting instructions. -->
    interpreted by freetype's Byte-Code Interpreter. This works best for
    fonts with good hinting instructions. -->
<edit mode="assign" name="hinting">
<edit mode="assign" name="hinting">
<bool>true</bool>
<bool>true</bool>
</edit>
</edit>


<!-- Auto-discovery for hinting. This looks worse than normal hinting for fonts with good instructions,
<!-- Auto-discovery for hinting. This looks worse than normal hinting for
    but better for those with poor or no instructions. The autohinter and subpixel rendering are not
    fonts with good instructions, but better for those with poor or no
     designed to work together and should not be used in combination. -->
    instructions. The autohinter and subpixel rendering are not designed
     to work together and should not be used in combination. -->
<edit mode="assign" name="autohint">
<edit mode="assign" name="autohint">
<bool>false</bool>
<bool>false</bool>
</edit>
</edit>


<!-- Hint style is the amount of influence the hinting mode has. Hinting can be set to:
<!-- Hint style is the amount of influence the hinting mode has. Hinting
    "hintfull", "hintmedium", "hintslight" and "hintnone". With BCI hinting, "hintfull" should
    can be set to: "hintfull", "hintmedium", "hintslight" and "hintnone".
    work best for most fonts. With the autohinter, "hintslight" is recommended. -->
    With BCI hinting, "hintfull" should work best for most fonts.
    With the autohinter, "hintslight" is recommended. -->
<edit mode="assign" name="hintstyle">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
<const>hintslight</const>
</edit>
</edit>


<!-- Subpixel rendering effectively triples the horizontal (or vertical) resolution for fonts
<!-- Subpixel rendering effectively triples the horizontal (or vertical)
    by making use of subpixels. The autohinter and subpixel rendering are not designed to work
    resolution for fonts by making use of subpixels. The autohinter and
    together and should not be used in combination.
    subpixel rendering are not designed to work together and should not
    Most monitors manufactured today use the Red, Green, Blue (RGB) specification.
    be used in combination. Most monitors manufactured today use the
    Fontconfig will need to know your monitor type to be able to display your fonts correctly.
    Red, Green, Blue (RGB) specification. Fontconfig will need to know
     Values are "rgb" (most common), "bgr", "vrgb" (vertical), "vbgr", "unknown" or "none". -->
    your monitor type to be able to display your fonts correctly.
     Values are "rgb" (most common), "bgr", "vrgb" (vertical), "vbgr",
    "unknown" or "none". -->
<edit mode="assign" name="rgba">
<edit mode="assign" name="rgba">
<const>rgb</const>
<const>rgb</const>
</edit>
</edit>


<!-- When using subpixel rendering, you should enable the LCD filter, which is designed to
<!-- When using subpixel rendering, you should enable the LCD filter,
    reduce colour fringing. The "lcddefault" filter will work for most users.
    which is designed to reduce colour fringing. The "lcddefault" filter
    Other filters are available that can be used in special situations:
    will work for most users. Other filters are available that can be
    "lcdlight"; a lighter filter ideal for fonts that look too bold or fuzzy;
    used in special situations: "lcdlight"; a lighter filter ideal for
    "lcdlegacy", the original Cairo filter; "lcdnone" to disable it entirely. -->
    fonts that look too bold or fuzzy; "lcdlegacy", the original Cairo
    filter; "lcdnone" to disable it entirely. -->
<edit mode="assign" name="lcdfilter">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
<const>lcddefault</const>
Riga 74: Riga 80:
</match>
</match>


<!-- Manually set the DPI value
<!-- Fontconfig should be able to detect DPI parameters as discovered
    by the Xorg server. You can check the automatically discovered DPI
    with the command xdpyinfo -->
<!--
<match target="pattern">
<match target="pattern">
<edit name="dpi" mode="assign">
<edit name="dpi" mode="assign">
Riga 86: Riga 95:
Salviamo il file e riavviamo X facendo logout e login.
Salviamo il file e riavviamo X facendo logout e login.


NOTA: dalla versione 2.10 di fontconfig (non ancora disponibile in debian al momento della scrittura) il file <code>~/.fonts.conf</code> cambierà percorso, diventando <code>~/.config/fontconfig/fonts.conf</code> (salvo cambiamenti della [http://pkg-fonts.alioth.debian.org/ Debian Fonts Task Force]).
{{Box|Nota|Dalla versione 2.10 di fontconfig (non ancora disponibile in Debian al momento della scrittura di questa pagina) il file <code>~/.fonts.conf</code> cambierà percorso, diventando <code>~/.config/fontconfig/fonts.conf</code> (salvo cambiamenti da parte della [http://pkg-fonts.alioth.debian.org/ Debian Fonts Task Force]).}}
{{Suggerimento|Se invece di salvare il file come <code>~/.fonts.conf</code> lo si salva come <code>/etc/fonts/local.conf</code> i cambiamenti saranno applicati a tutto il sistema e non ad un solo utente}}




Riga 136: Riga 146:
ed aggiungiamo quanto segue:
ed aggiungiamo quanto segue:
<pre>
<pre>
! You can define basic font resources without the need of a fonts.conf file
! or a desktop environment. Note however, the use of a desktop environment
! and/or fonts.conf can override these settings.
! Your best option is to use one or the other, but not both.
Xft.antialias: 1
Xft.antialias: 1
Xft.hinting: 1
Xft.hinting: 1
Riga 143: Riga 158:
Xft.lcdfilter: lcddefault
Xft.lcdfilter: lcddefault


! Per impostare manualmente il valore DPI
 
! Fontconfig will default to the Xft.dpi variable if it is set.
! Xft.dpi is usually set by desktop environments (usually to Xorg's DPI
! setting). Use "xrdb -query | grep dpi" to query for the value.
 
! Xft.dpi: 102
! Xft.dpi: 102
</pre>
</pre>
Salviamo il file e riavviamo X facendo logout e login.
Salviamo il file e riavviamo X facendo logout e login.
{{Suggerimento|Se invece del file <code>~/.Xresources</code> si inseriscono queste opzioni in <code>/etc/X11/Xresources/x11-common</code> i cambiamenti saranno applicati a tutto il sistema e non ad un solo utente}}




Riga 169: Riga 190:
=== KDE ===
=== KDE ===
Se, una volta avviato KDE, la dimensione dei caratteri è piccola, ciò è dovuto al fatto che KDM sta utilizzando di default i 75dpi.
Se, una volta avviato KDE, la dimensione dei caratteri è piccola, ciò è dovuto al fatto che KDM sta utilizzando di default i 75dpi.
Bisogna quindi modificare il file <code>/etc/kde3/kdm/kdmrc</code>. Cercare la riga:
Bisogna quindi modificare il file <code>/etc/kde4/kdm/kdmrc</code> (o <code>/usr/share/config/kdm/kdmrc</code>). Cercare la riga:
<pre>ServerArgsLocal=-nolisten tcp</pre>
<pre>ServerArgsLocal=-nolisten tcp</pre>
e aggiungere il valore DPI desiderato:
e aggiungere il valore DPI desiderato:
317

contributi