Outils pour utilisateurs

Outils du site


informatique:ecriture:polices

Ceci est une ancienne révision du document !


Polices

Pour visualiser les polices disponibles sur mon système, j'utilise gnome-font-viewer. Il affichera l'ensemble des polices disponibles pour l'utilisateur. Celles-ci sont situées soit dans /usr/share/fonts soit dans ~/.local/share/fonts.

Les différentes polices sont testées avec l'échantillon suivant :

abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789.:,;(){}[]<>|^/*!?`'"@#$%&_-+=~
àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ
The quick brown fox jumps over the lazy dog
== === != !== >= <= -> <=> =>
0O 1l B8 <> [] {} 2N2N2N2N

public static int findMin(int[] list)
{	
    /* Not Hello, world */
    assert list != null && list.length > 0 : "failed precondition";
    int indexOfMin = 0;
    for(int i = 1; i < list.length; i++)
    {	if(list[i] < list[indexOfMin])
        {	indexOfMin = i;
        }
    }
    return indexOfMin;
}

Polices pour développeur

Quand on travaille de nombreuses heures sur du code, il est important de mettre toutes les chances de son coté pour se faciliter la vie. Ça commence pas l'utilisation d'une police appropriée qui évitera les confusions et améliorera la lisibilité.

Avec une mauvaise police, il y a des risques de mauvaise lecture du code, par exemple en confondant :

  • 0/O (le chiffre “zéro” et la lettre “O” majuscule),
  • 1/l (le chiffre “un” et la lettre “L” minuscule),
  • B/8 (la lettre “B” et le chiffre “8”).

Fira Code

abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789.:,;(){}[]<>|^/*!?`'“@#$%&_-+=~
àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ
The quick brown fox jumps over the lazy dog
== === != !== >= <= -> <=> =>
0O 1l B8 <> [] {} 2N2N2N2N

public static int findMin(int[] list)
{
/* Not Hello, world */
assert list != null && list.length > 0 : “failed precondition”;
int indexOfMin = 0;
for(int i = 1; i < list.length; i++)
{ if(list[i] < list[indexOfMin])
{ indexOfMin = i;
}
}
return indexOfMin;
}

  • La police est directement disponible dans les dépôts de Arch Linux.
  • La police supporte les ligatures.

Polices utilisées

Ænigma Scrawl 4 BRK

abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789.:,;(){}[]<>|^/*!?`'”@#$%&_-+=~
àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ
The quick brown fox jumps over the lazy dog
== === != !== >= <= -> <=> =>
0O 1l B8 <> [] {} 2N2N2N2N

Grudge 2 BRK

abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789.:,;(){}[]<>|^/*!?`'“@#$%&_-+=~
àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ
The quick brown fox jumps over the lazy dog
== === != !== >= <= -> <=> =>
0O 1l B8 <> [] {} 2N2N2N2N

ParaType Sans

abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789.:,;(){}[]<>|^/*!?`'”@#$%&_-+=~
àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ
The quick brown fox jumps over the lazy dog
== === != !== >= <= -> <=> =>
0O 1l B8 <> [] {} 2N2N2N2N

ParaType Serif

abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789.:,;(){}[]<>|^/*!?`'“@#$%&_-+=~
àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ
The quick brown fox jumps over the lazy dog
== === != !== >= <= -> <=> =>
0O 1l B8 <> [] {} 2N2N2N2N

Sketch Nothing

abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789.:,;(){}[]<>|^/*!?`'”@#$%&_-+=~
àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ
The quick brown fox jumps over the lazy dog
== === != !== >= <= -> <=> =>
0O 1l B8 <> [] {} 2N2N2N2N

  • C'est la police utilisée pour la génération des étiquettes que j'imprime pour donner un coté rustique.

Polices à tester

1)
je ne l'utilise plus vraiment, mais je garde ça au cas où.
informatique/ecriture/polices.1691511756.txt.gz · Dernière modification : 2023/08/08 09:22 de alexis