| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
| informatique:polices [2026/07/19 16:55] – alexis | informatique:polices [2026/07/19 17:00] (Version actuelle) – alexis |
|---|
| ====== Polices ====== | ====== Polices ====== |
| <WRAP info> | <WRAP info> |
| Les différentes polices sont testées avec l'échantillon suivant : | Les différentes polices sont testées avec l'échantillon de texte suivant : |
| <code> | <code> |
| abcdefghijklmnopqrstuvwxyz | abcdefghijklmnopqrstuvwxyz |
| == === != !== >= <= -> <=> => | == === != !== >= <= -> <=> => |
| 0O 1l B8 <> [] {} 2N2N2N2N | 0O 1l B8 <> [] {} 2N2N2N2N |
| |
| public function getElementValue(array $collection, string $index): ?int | |
| { | |
| /** Comment #1 */ | |
| if (empty($collection)) { | |
| return null; | |
| } | |
| | |
| // Comment #2 | |
| foreach ($collection as $key => $element) { | |
| if ($key < $index || $key > $index) { | |
| echo 'Index does not match key', PHP_EOL; | |
| continue; | |
| } | |
| | |
| return $element->value(); | |
| } | |
| } | |
| </code> | </code> |
| </WRAP> | </WRAP> |
| * [[https://www.dafont.com/fr/oldnewspapertypes.font|Page de téléchargement]]. | * [[https://www.dafont.com/fr/oldnewspapertypes.font|Page de téléchargement]]. |
| </WRAP> | </WRAP> |
| ===== Polices à tester ===== | |
| - [[https://www.fontsquirrel.com/fonts/alex-brush|Alex Brush Font Free by TypeSETit » Font Squirrel]] | |
| - [[https://www.fontsquirrel.com/fonts/Aquiline-two|Aquiline Two Font Free by Manfred Klein Fonteria » Font Squirrel]] | |
| - [[https://fontzone.net/font-details/artistamp-medium|Artistamp Medium Font - FontZone.net]] | |
| - [[https://fontzone.net/font-details/assassins-dub|Assassins Dub Font - FontZone.net]] | |
| - [[https://fontzone.net/font-details/awaken|Awaken Font - FontZone.net]] | |
| - [[https://b612-font.com/|B612 – The font family]] | |
| - [[https://fontzone.net/font-details/bailey-regular|Bailey Regular Font - FontZone.net]] | |
| - [[https://fontzone.net/font-details/bajareczka-shadow|Bajareczka Shadow Font - FontZone.net]] | |
| - [[https://fontzone.net/font-details/beauregard-hollow|Beauregard Hollow Font - FontZone.net]] | |
| - [[https://www.fontsquirrel.com/fonts/ceviche-one|Ceviche One Font Free by Latinotype » Font Squirrel]] | |
| - [[https://input.djr.com/|Input: Fonts for Code]] | |
| - [[https://fontzone.net/font-details/satisfaction|Satisfaction Font - FontZone.net]] | |
| - [[https://fonts.google.com/specimen/Tangerine|Tangerine - Google Fonts]] | |
| - [[https://fontzone.net/font-details/typewriterrough-italic|TypewriterRough Italic Font - FontZone.net]] | |
| - [[https://identity.sweden.se/en/design-elements/typography|Typography | Sweden]] | |
| - [[https://www.omgubuntu.co.uk/2025/11/google-sans-flex-font-ubuntu|Google Releases its New Google Sans Flex Font as Open Source - OMG! Ubuntu]] | |
| - [[https://github.com/sayyadirfanali/Myna?tab=readme-ov-file|sayyadirfanali/Myna: monospace typeface designed for symbol-rich programming]] | |
| - [[https://public-sans.digital.gov/|Public Sans]] | |
| - [[https://rajeeshknambiar.wordpress.com/2025/12/27/a-font-with-built-in-tex-syntax-highlighting/|A font with built-in TeX syntax highlighting – Soliloquies]] | |
| - [[https://github.com/Loretta1982/xenia|Loretta1982/xenia]] | |
| - [[https://digitalseams.com/blog/making-a-font-with-9999-ligatures-to-display-thirteenth-century-monk-numerals|Making a font with 9,999 ligatures to display thirteenth-century monk numerals — Digital Seams]] | |
| |
| |
| ===== Répertoires de polices ===== | |
| - [[https://www.dafont.com/fr/|DaFont - Polices à télécharger]] | |
| - [[https://www.fontsquirrel.com/|Free Fonts! Legit Free & Quality » Font Squirrel]] | |
| - [[https://github.com/google/fonts|GitHub - google/fonts: Font files available from Google Fonts, and a public issue tracker for all things Google Fonts]] | |
| - [[https://velvetyne.fr/|Home - VTF]] | |
| - [[http://www.warriordudimanche.net/article74/telechargez-mais-que-font-la-police|Mais que FONT la POLICE...? (200 fontes pour vos designs) - Warrior du Dimanche]] | |
| - [[https://www.nerdfonts.com/font-downloads|Nerd Fonts - Iconic font aggregator, glyphs/icons collection, & fonts patcher]] | |
| - [[https://www.fontspace.com/category/opentype|Opentype Fonts | FontSpace]] | |
| - [[https://v-fonts.com/|Variable Fonts]] | |
| |
| ===== Pour créer sa propre police ===== | |
| - [[https://www.calligraphr.com/en/features/|Calligraphr]] | |
| - [[https://arcade.pirillo.com/fontcrafter.html|FontCrafter]] | |
| - [[https://www.tunera.xyz|Tunera Type Foundry]] | |
| ===== Configuration et utilisation ===== | |
| |
| ==== Installation sous Linux ==== | |
| |
| Si les polices sont disponibles dans les dépôts, il est recommandé d'utiliser le gestionnaire de paquet pour les installer. | |
| Sinon il faut copier les fichiers dans le répertoire ''~/.local/share/fonts'' et de regénérer les informations de cache des polices avec la commande suivante : | |
| <code> | |
| fc-cache --force --verbose | |
| </code> | |
| |
| ==== Visualisation ==== | |
| Pour visualiser les polices disponibles sur mon système, j'utilise [[https://www.archlinux.org/packages/extra/x86_64/gnome-font-viewer/|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''. | |
| |
| ==== Activation des ligatures dans vscode ==== | |
| * Installer une police le permettant, ici [[https://github.com/tonsky/FiraCode|Fira Code]], | |
| * Dans la configuration, ajouter le nom de la police dans la liste des polices supportées, ici ''Fira Code'', | |
| * Dans le fichier //settings.json//, ajouter la propriété ''editor.fontLigatures'' avec la valeur ''true''. | |
| |
| ==== Ajouter des polices dans Dokuwiki ==== | |
| Voir [[informatique:outils:dokuwiki#ajouter_des_polices|Dokuwiki]]. | |
| |