|
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Foreword"One of the most obvious and painfull imperfections of Linux systems is the X Window System's cumbersome font-handling facilities." (Æleen Frisch) The chief reason resides in a lack of an unified font manager under this environment. Not only there are a number of font standards but, and more, each application has its own font handling and configuring methods. Here after are, very condensed, the results of my investigations and some practice restricted to a RedHat/Mandrake context. Handling fonts under X is in fact a vast topic wich will be only lightly touched here. To learn more about see resources at the end of this page. Font : A complete set of characters of the same type. |
Avant propos"Une des plus évidentes et pénibles imperfections des systèmes Linux est la lourdeur du maniement des fontes sous X Window." (Æleen Frisch) Ceci est du principalement à l'absence d'un système de gestion de fontes unifié sous cet environnement. Non seulement il existe de nombreux types de fontes mais, de plus, chaque application a son propre mode de gestion et de configuration des fontes. Je vous livre ci-après le résultat très condensé de mes investigations et exercices pratiques restraints à un contexte RedHat/Mandrake. La manipulation des fontes sous X est en fait un vaste sujet, lequel ne sera qu'effleuré ici. Pour en savoir plus, reportez vous aux ressources citées en fin de page.
Fonte : Assortiment complet de caractères de même type. Syn. police (de caractères)
|
||||||||||||||||||||||||
Fonts basics
There is two very distinct categories of fonts :
|
Les bases
Il existe deux catégories de fontes bien distinctes :
|
||||||||||||||||||||||||
Fig. 1 |
|||||||||||||||||||||||||
Under X, fonts are named by their X Logical Font Descriptor (XLFD). An XLFD consists of a dash ( - ) followed by 14 fields separated by dashes. It goes like this :
|
Sous X, les fontes sont nommées d'après la convention XLFD (Descripteur Logique de Fonte sous X). Un XLFD consiste en un tiret ( - ) suivi de 14 champs séparés par des tirets. Il se présente comme suit :
|
||||||||||||||||||||||||
Fig.2 |
|||||||||||||||||||||||||
Fonts management under X
|
Gestion des fontes sous X
|
||||||||||||||||||||||||
Installing TrueType fonts
Where to get TrueType fonts ?
After extracting those files on an old DOS box, I copied the .ttf files into a newly created directory /usr/share/fonts/ttf/microsoft/ . Then from this directory I run drakfont . It installed the fonts in the directory /usr/X11R6/lib/X11/fonts/drakfont and created the corresponding fonts.dir file. So I got 17 fonts and 80 XLFD. Drakfont is a good interactive tool, it installs the fonts in .../fonts/drakfonts/. IT also converts the ttf to Type 1 , creates the .pfa , .pfb and creates or updates the fonts.dir and Fontmap files. However it does not hurt to rename this directory and to include it in the config file /usr/X11R6/lib/X11/fs/config
Kfontinst is another tool able to install TrueType fonts. |
Installation de fontes TrueType
Où se procurer des fontes TrueType ?
Après extraction de ces fichiers sur une vieille machine DOS, j'ai copié les fichiers .ttf dans un répertoire nouvellement créé /usr/share/fonts/ttf/microsoft/ . Puis depuis ce répertoire j'ai lancé drakfont. Il a installé les fontes dans /usr/X11R6/lib/X11/fonts/drakfont et créé le fichier fonts.dir correspondant. J'ai ainsi obtenu 17 fontes et 80 XLFD. Drakfont est un excellent outil interactif, il installe les fontes dans .../fonts/drakfont/. Il effectue aussi la conversion de ttf en Type 1, crée les .pfa , .pfb , et crée ou met à jour fonts.dir et Fontmap. Cependant il n'est pas interdit de renommer ce répertoire et de l'inclure dans le script de configuration /usr/X11R6/lib/X11/fs/config
Kfontinst est un autre outil capable d'installer des fontes TrueType. |
||||||||||||||||||||||||
Font-related informationLinux Magazine Feb 2000, keywords : administering fontsLinux Magazine Mar 2000, keywords : handling truetype http://www.linux-mag.com Unicode in the Unix environment by Roman Czyborra http://czyborra.com The ISO 8859 Alphabet Soup by Roman Czyborra http://czyborra.com/charsets/iso8859.html Using TrueType fonts with RedHat http://www.kegel.com/linux/tt.html The TrueType HowTo by Brion Vibber http://leuksman.com/linux/TrueType-HOWTO.html The comp.fonts FAQ by Norman Walsh http://www.nwalsh.com/comp.fonts/FAQ See also : man xfd, man xfontsel, man xset, man mkfontdir man drakfont |
Informations relatives aux fontesLinux Magazine France Février 1999, Septembre 2001http://www.linuxmag-france.org Linux Pratique Novembre-Décembre 2003, p.57 http://www.linux-pratique.com Pages pédagogiques sur la typographie et l'imprimerie http://www.planete-typographie.com Voir aussi : man xfd, man xfontsel, man xset, man mkfontdir man drakfont |
||||||||||||||||||||||||
How fonts are managed with Debian Etch ?Relevant information may be found in the following files 1 - /usr/share/doc/fontconfig/README.Debian
*** IMPORTANT ***
If you wish to enable bitmapped fonts manually, either reconfigure this
package (with dpkg-reconfigure fontconfig-config), or remove the
symbolic link /etc/fonts/conf.d/30-debconf-no-bitmaps.conf
How fonts are handled in Debian: Fontconfig is a library which handles font configuration and access at the system level. It is the foundation for a new font handling in X applications (but can also be useful without X). Applications not using fontconfig are accessing their fonts through the X server. Font packages for these applications are named xfonts-*. You can also use TrueType fonts with these applications if you install the x-ttcidfont-conf package, which connects the X server to defoma, fonts included in ttf-* packages or added manually using dfontmgr can then be used in these programs. A few of these applications, using Xft1, can benefit of antialiasing with vector fonts, but it is deprecated. The new font renderer in XFree86 is called freetype2, and applications using it access fonts on the client side. Most of them (including all GTK2/GNOME2 and KDE3 applications) do it using fontconfig, which provides listing and matching facilities for all fonts installed on the system. Any font installed in /usr/share/fonts or ~/.fonts will be accessible to these applications. This is now also true for fonts added using defoma. These programs can all benefit from antialiasing, autohinting and sub-pixel rendering. You can configure it through fontconfig, using debconf (dpkg-reconfigure fontconfig-config), or by changing links in /etc/fonts/conf.d by hand.
Original text by:
Changes for fontconfig 2.3 packages by:
conf.d/README Each file in this directory is a fontconfig configuration file. Fontconfig scans this directory, loading all files of the form [0-9][0-9]*. These files are normally installed in ../conf.avail and then symlinked here, allowing them to be easily installed and then enabled/disabled by adjusting the symlinks. The files are loaded in numeric order, the structure of the configuration has led to the following conventions in usage: |
Comment les fontes sont gérées avec Debian Etch ?L'information pertinente se trouve dans les fichiers ci-après 1 - /usr/share/doc/fontconfig/README.Debian
*** IMPORTANT ***
Si vous souhaitez autoriser les fontes bitmap manuellement, vous pouvez soit reconfigurez
ce paquet (avec dpkg-reconfigure fontconfig-config), ou bien enlever le lien symbolique
/etc/fonts/conf.d/30-debconf-no-bitmaps.conf
Comment Debian manipule les fontes: Fontconfig est une bibliothèque qui manipule la configuration des fontes et leur accès au niveau système. Il constitue la base du maniement des fontes sous X (mais peut aussi être utile sans X). Les applications n'utilisant pas fontconfig accèdent à leurs fontes à travers le serveur X. Les paquets de fontes pour ces applications sont nommés xfonts-*. Vous pouvez aussi utiliser des fontes TrueType avec ces applications si vous installez le paquet x-ttcidfont-conf, lequel connecte le serveur X à defoma, les fontes incluses dans les paquets ttf-* ou ajoutées manuellement en utilisant dfontmgr peuvent alors être utilisées dans ces programmes. Quelques unes de ces applications, utilisant Xft1, peuvent bénéficier de l'antialiasing avec les fontes vectorielles, mais cela est déconseillé. Le nouveau moyen de rendu des fontes dans XFree86 est appelé freetype2, et les applications l'utilisant accèdent aux fontes côté client. La plupart d'entre elles (incluant toutes les applications GTK2/GNOME2 and KDE3) le font en utilisant fontconfig, lequel procure les moyens de listage et de correspondance pour toutes les fontes installées sur le système. N'importe quelle fonte installée dans /usr/share/fonts or ~/.fonts sera accessible à ces applications. Ceci est maintenant aussi vrai pour les fontes ajoutées en utilisant defoma. Ces programmes peuvent aussi bénéficier de l'antialiasing, autohinting et sub-pixel rendering. Vous pouvez le configurer à travers fontconfig, en utilisant debconf (dpkg-reconfigure fontconfig-config), ou en changeant les liens dans /etc/fonts/conf.d à la main. -- Traduit par Robert L. Billon, Nov 2007
conf.d/README Chaque fichier dans ce répertoire est un fichier de configuration de fontconfig. Fontconfig parcourt ce répertoire, chargeant tous les fichiers de la forme [0-9][0-9]*. Ces fichiers sont normalement installés dans ../conf.avail et symboliquement liés ici, leur permettant d'être aisément installés et alors autorisés/inhibés en ajustant les liens symboliques. Ces fichiers sont chargés dans l'ordre numérique, la structure de la configuration a conduit à l'usage des conventions suivantes : |
||||||||||||||||||||||||
|
|||||||||||||||||||||||||
3 - /etc/fonts/fonts.conf
We find here the font directory list |
3 - /etc/fonts/fonts.conf
Nous trouvons ici la liste des répertoires de fontes |
||||||||||||||||||||||||
|
|||||||||||||||||||||||||
From what we have just seen, it results : As long as a user has in his homedir a directory .fonts. His personal fonts will be accounted for and available in his applications. As it is a matter of system font management, any modification of .fonts will be accounted for at the next boot or by running fc-cache before launching this application. It seems well that there is at last *THE VERY* font management we were all waiting for Linux. So one can keep a common base set of system fonts and each user can have his own fonts, as an example he could use his fonts for a project, then delete or archive them. Note: There is also, in the KDE environment, kfontinst, a handy font manager. -- Robert L. Billon, Nov 2007 |
De ce que nous venons de voir, il résulte que : A partir du moment où un user a dans son homedir un répertoire .fonts , ses fontes sont prises en compte et disponibles pour ses applis. Comme il s'agit d'une gestion système des fontes, toute modification de .fonts sera prise en compte lors d'un reboot ou bien en lançant fc-cache avant de lancer l'application. Il semble bien que ce soit enfin *LA* gestion de fontes que nous attendions pour Linux. On peut ainsi garder un ensemble de fontes système de base commun et chaque utilisateur peut avoir ses propres fontes et, par exemple, utiliser des fontes pour un projet puis les supprimer ou les archiver. Note : Il existe aussi, dans l'environnement KDE, kfontinst, un gestionnaire de fontes pratique. -- Robert L. Billon, Nov 2007 |
||||||||||||||||||||||||
More about...Times New Roman What about using it ? Times New Roman was designed on the year 1932 by Stanley Morisson, a renowned typographer, for the Times newspaper. This font is designed in order to comply with the constraints of a newspaper, allowing to write a text little and compact without compromising legibility. Just use it wisely. Helvetica The Helvetica font was created on 1957 by Max Miedinger and was designed in a way to maximalize visual harmony. Symbol of the Helvetic typography, his graphism is very neutral, allowing multiples and varied uses, so it is one most used fonts in the world. Helvetica is a variant derived from the Akzidenz-Grotesk, one of the first sans serif typography really popular, designed by the typographic foundry H. Berthold in Berlin on 1896. Helvetica is not included in the Debian distribution and his derivatives. Whilst it can be freely distributed, it's not published under a free license, hence does not satisfy the Debian policy on licenses. Helvetica in Open Type format (.otf) can be found and are well operational under Linux. For more about Open Type, see the following link: wikipedia.org/wiki/OpenType Clearview
The Clearview font was designed specifically in order to improve legibility
on US interstate road signs. The distance of legibility, compared to the Gothic
typeface, is so increased by 50%. Available under fee only.
Esperanto
The declaration : |
A propos de...Times New Roman
Du bon usage...
Times New Roman a �t� créé en 1932 par Stanley Morisson, un grand typographe,
pour le journal Times. C'est une fonte prévue pour s'adapter aux contraintes
d'un journal, et donc permettant d'écrire du texte petit et compact sans nuire
à la lisibilité. Il faut juste l'utiliser a bon escient.
Helvetica Helvetica est une fonte sans serif créée en 1957 par Max Miedinger qui l'a dessinée dans le but d'atteindre l'harmonie optique. Symbole de la typographie suisse, son tracé d'une grande neutralité lui permet de se prêter à tous les usages, si bien qu'elle est une des fontes les plus utilisées dans le monde. Helvetica est une variante dérivée de l'Akzidenz-Grotesk, une des premières typographies sans serif vraiment populaire, conçues par la fonderie typographique berlinoise H. Berthold en 1896.
Helvetica n'est pas incluse dans la distribution Debian ainsi que les distributions dérivé. En effet bien que cette fonte soit distribuée librement, elle n'est pas publiée sous une licence libre et donc ne satisfait pas à la politique de licences de Debian. On peut se procurer des Helvetica en format Open Type (.otf) qui sont parfaitement utilisables sous Linux. Pour plus de détails sur Open Type voir le lien suivant : Clearview La fonte Clearview a été développée spécifiquement pour améliorer la lisibilité des paneaux routiers aux USA. Le gain en distance de lecture, par rapport au Gothic, est de 50%. Accesible moyennant licence payante. Esperanto
La déclaration : |
||||||||||||||||||||||||
File: fonts.html - Robert L.E. Billon, 2002-01-17 - Last update: 2010-11-04 |