Size: 781
Comment: create
|
Size: 9452
Comment: link to the service page too
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
email lists: [http://lists.alioth.debian.org/mailman/listinfo/cjkunifonts-devel CJKUnifonts-devel] [http://lists.alioth.debian.org/mailman/listinfo/cjkunifonts-hakkaim CJKUnifonts-HakkaIM] [http://lists.alioth.debian.org/mailman/listinfo/cjkunifonts-minnanim CJKUnifonts-MinnanIM] [http://lists.alioth.debian.org/mailman/listinfo/freefont-devel Freefont-devel] [http://lists.alioth.debian.org/mailman/listinfo/pkg-fonts-bugs Pkg-fonts-bugs] [http://lists.alioth.debian.org/mailman/listinfo/pkg-fonts-commits Pkg-fonts-commits] [http://lists.alioth.debian.org/mailman/listinfo/pkg-fonts-devel Pkg-fonts-devel] | #language en <<TableOfContents()>> |
Line 3: | Line 4: |
Fonts and Debian: [http://www.miriamruiz.es/debfonts/ existing] and [http://wiki.debian.org/Fonts/Missing missing] | == Adding fonts == |
Line 5: | Line 6: |
Font related pages: | === Packages === Fonts can be added system-wide to Debian by installing the appropriate package; fonts are specified in the [[DebianPkg:stable/fonts/|“Fonts” section]]. |
Line 7: | Line 9: |
[[FullSearch(title:Font)]] | Notes: * For most uses, you’ll want TrueType (TTF) and !OpenType (OTF) fonts – these packages start with `fonts-`, `ttf-` or `otf-`. * Some non-free font downloader packages are in `contrib`, which you will need to add to your `sources` if not present. === Manually === Install a font manually by downloading the appropriate `.ttf` or `otf` files and placing them into `/usr/local/share/fonts` (system-wide), `~/.local/share/fonts` (user-specific) or `~/.fonts` (user-specific). These files should have the permission `644` (`-rw-r--r--`), otherwise they may not be usable. Run `fc-cache` to update the font cache (add `-v` for verbose output). he above mentioned paths can be customized in the WikiPedia:fontconfig configuration file at `/etc/fonts/fonts.conf` – you can also include subdirectories or links, which is useful if you have a directory of fonts on a separate hard drive (or partition or other location). GNOME users can simply open a Nautilus window to `fonts://` and drag&drop the font files in there. You can verify the fonts are present by looking for them in an application (such as a word processor), or by using the command `fc-list`. A python based graphical utility, DebianPkg:font-manager, is also available to preview all installed and available fonts. == Configuration == WikiPedia:fontconfig is the underlying configuration tool; you may find the following programs useful: * `fc-list` – lists fonts * `fc-match -s helvetica` – show an ordered list of fonts matching a certain name or pattern * `fc-cache -fv` – rebuilds cached list of fonts (in `~/.config/fontconfig`, older caches may also be in `~/.fontconfig`) To view a list of monospaced client-side fonts (available from Xft, so it is possible to apply font hinting and antialiasing): {{{ $ fc-list :spacing=mono }}} To view a list of server-side (available directly from X server, so font hinting and antialiasing are not available) monospaced fonts: {{{ $ xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*' $ xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*' }}} You may also find the following useful to change the default font rendering: {{{ $ dpkg-reconfigure fontconfig-config $ dpkg-reconfigure fontconfig }}} == Font lists == The page http://www.miriamruiz.es/debfonts/ displays the fonts contained in some packages. The [[http://pkg-fonts.alioth.debian.org/review/|Debian Fonts Review]] [[Services/DebianFontReview|service]] [[https://lists.alioth.debian.org/pipermail/pkg-fonts-devel/2016-September/018319.html|needs]] to be [[https://lists.alioth.debian.org/pipermail/pkg-fonts-devel/2016-September/018325.html|revived]]. Various libre fonts are [[Fonts/Missing|missing]] from Debian and need to be packaged. === Commonly Used Fonts === The DebianPkg:fonts-liberation ([[DebianPkg:squeeze/ttf-liberation|ttf-liberation]] in squeeze) package supplies fonts with the same metrics as Times, Arial and Courier. These fonts are named '''Liberation''' and are present in most cases. If you require the non-free original Microsoft fonts the DebianPkg:ttf-mscorefonts-installer package (in contrib) can be used to obtain them. East Asian fonts: DebianPkg:ttf-arphic-uming DebianPkg:ttf-wqy-zenhei DebianPkg:ttf-sazanami-mincho DebianPkg:ttf-sazanami-gothic DebianPkg:ttf-unfonts-core (from [[WikiPedia:Help:Multilingual_support_(East_Asian)#Debian-based_GNU.2FLinux|Wikipedia: Help:Multilingual support (East Asian)]]) If you want to use non-free fonts like Calibri which originate from Microsoft Office, you can download and [[ppviewerFonts|install them]] (gratis) from the Microsoft Powerpoint Viewer. == Troubleshooting == If fonts do not display properly, you may want o make sure the right font gets loaded, for example with: {{{ fn-match -s Helvetica }}} If it doesn't, you may want to regenerate the caches with: {{{ dpkg-reconfigure fontconfig fontconfig-config }}} You can also run this as a user with `fc-cache -fv`. Otherwise, you can also look at the font in a viewer like DebianPkg:font-manager. == Bugs == <<Anchor(non-free)>> <<Anchor(license-violation)>> <<Anchor(duplicate)>> <<Anchor(fontconfig)>> === Usertags === The pkg-fonts team will use these tags for usertags ([[http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=pkg-fonts-devel@lists.alioth.debian.org|user: pkg-fonts-devel@lists.alioth.debian.org]]) * [[/Bugs/non-free|non-free]]: for packages that contain non-free fonts taken from the web (severity serious) * [[/Bugs/license-violation|license-violation]]: for packages that contain fonts that are GPL/LGPL but do not distribute source (severity serious) * [[/Bugs/contrib|contrib]]: for packages that contain free fonts that cannot be built with free tools (severity serious) * [[/Bugs/duplicate|duplicate]]: for packages that contain fonts that duplicate fonts from other packages (severity normal?minor?wishlist?) * split: for packages that contain fonts we would like to see split into other packages (severity wishlist) * [[/Bugs/fontconfig|fontconfig]]: for packages that should switch to dynamically looking up font paths using fontconfig (severity wishlist) * render: for packages that should switch to a font renderer that automatically uses the right fonts (severity wishlist) == Font design and formats == === Source Font Formats === * SFD ([[https://fontforge.github.io/sfdformat.html|Spline Font Database]], FontForge's ASCII file format for vector fonts) * UFO ([[http://unifiedfontobject.org/|Unified Font Object]]) * Glyphs (proprietary format of [[https://glyphsapp.com/|Glyphs]]) === Generating Fonts from Source === The upstream build system should always be used for generating fonts. If upstream does not have a build system, then it is a good idea to contribute one to them based on the following Free Software tools. The DebianPkg:fontforge is an editor for outline and bitmap fonts that generates all kinds of fonts. It is also scriptable and has an addon tool DebianPkg:xgridfit for hinting. Fonts using these tools can be found using these commands: {{{ apt-cache rdepends fontforge apt-cache rdepends xgridfit }}} === Output Font Formats === ttf, otf, bdf, pfb, fnt, woff == Font Tools == ||''Tool'''||''Debian package'''||'''Comments'''|| || [[http://www.tug.org/texlive/|texlive-font-utils]] || DebianPkg:texlive-font-utils || Programs for font conversion, testing, and other manipulation. || || fttools || || || || || [[https://www.ctan.org/pkg/ttf2tex|ttf2tex]] || || || || freetype1-tools || || || || || [[http://ttf2pt1.sourceforge.net/|ttf2pt1]] || || Font converter from TrueType to Adobe Type1. || || [[https://www.math.nmsu.edu/~mleisher/Software/otf2bdf/|otf2bdf]] || DebianPkg:otf2bdf || Command line utility that generates BDF bitmap fonts from OpenType fonts. || || [[https://github.com/behdad/fonttools|fonttools]] || DebianPackage:fonttools || A Python library to open and manipulate OTF and TTF files. || || [[https://fontmanager.github.io/|GTK+ Font Manager]] || DebianPkg:font-manager || Python program to show and compare fonts || || [[https://github.com/GNOME/gnome-font-viewer|GNOME Font Viewer]] || DebianPkg:gnome-font-viewer || Simple interface to show a preview of all fonts installed || There are several font tools which are not included in Debian, but are used to produce fonts included in Debian: || {i} || Available in Debian although not yet in stable. || || {*} || Someone is working on inclusion into Debian. || || {o} || Someone requested inclusion into Debian. || || {X} || Someone needs to [[http://www.debian.org/devel/wnpp/#l1|file an RFP or ITP bugreport]] and update this page with resulting bug number. || || /!\ || Was available in Debian but is not part of stable or unstable. || ||<style="width: 40%; text-align: left;">'''Tool'''||'''Comments'''|| || {o} [[https://github.com/typesupply/defcon|defcon]] || DebianBug:806513 || || {o} [[https://github.com/typemytype/booleanOperations|booleanOperations]] || DebianBug:806516 || || {o} [[https://github.com/googlei18n/cu2qu|cu2qu]] || DebianBug:868004 || || {o} [[https://github.com/googlei18n/fontmake|fontmake]] || DebianBug:865283 || || {o} [[https://github.com/googlei18n/glyphsLib|glyphsLib]] || DebianBug:868005 || || {o} [[https://github.com/LettError/MutatorMath|MutatorMath]] || DebianBug:806503 || || {o} [[https://github.com/googlei18n/ufo2ft|ufo2ft]] || DebianBug:868006 || == Further Resources == <<FullSearch(title:Font)>> * [[http://pkg-fonts.alioth.debian.org/|Debian Fonts Task Force]] * [[http://xjqian.wordpress.com/2007/11/13/chinese-fonts-in-debian/|Chinese fonts in Debian]] - a blog post * [[https://fedoraproject.org/wiki/Category:Fonts|Fedora]] fonts information * [[https://wiki.archlinux.org/index.php/Fonts|Arch Linux]] fonts documentation === Outdated === Old, retained for historical interest and reference: * [[http://www.faqs.org/docs/Linux-mini/TT-Debian.html|TrueType Fonts in Debian mini-HOWTO]] – 2000 FAQ by Bear Giles * [[http://ertius.org/docs/debian_font_guide/|Debian Font Guide]], Rob Weir |
Contents
Adding fonts
Packages
Fonts can be added system-wide to Debian by installing the appropriate package; fonts are specified in the “Fonts” section.
Notes:
For most uses, you’ll want TrueType (TTF) and OpenType (OTF) fonts – these packages start with fonts-, ttf- or otf-.
Some non-free font downloader packages are in contrib, which you will need to add to your sources if not present.
Manually
Install a font manually by downloading the appropriate .ttf or otf files and placing them into /usr/local/share/fonts (system-wide), ~/.local/share/fonts (user-specific) or ~/.fonts (user-specific). These files should have the permission 644 (-rw-r--r--), otherwise they may not be usable.
Run fc-cache to update the font cache (add -v for verbose output). he above mentioned paths can be customized in the fontconfig configuration file at /etc/fonts/fonts.conf – you can also include subdirectories or links, which is useful if you have a directory of fonts on a separate hard drive (or partition or other location).
GNOME users can simply open a Nautilus window to fonts:// and drag&drop the font files in there.
You can verify the fonts are present by looking for them in an application (such as a word processor), or by using the command fc-list. A python based graphical utility, font-manager, is also available to preview all installed and available fonts.
Configuration
fontconfig is the underlying configuration tool; you may find the following programs useful:
fc-list – lists fonts
fc-match -s helvetica – show an ordered list of fonts matching a certain name or pattern
fc-cache -fv – rebuilds cached list of fonts (in ~/.config/fontconfig, older caches may also be in ~/.fontconfig)
To view a list of monospaced client-side fonts (available from Xft, so it is possible to apply font hinting and antialiasing):
$ fc-list :spacing=mono
To view a list of server-side (available directly from X server, so font hinting and antialiasing are not available) monospaced fonts:
$ xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*' $ xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*'
You may also find the following useful to change the default font rendering:
$ dpkg-reconfigure fontconfig-config $ dpkg-reconfigure fontconfig
Font lists
The page http://www.miriamruiz.es/debfonts/ displays the fonts contained in some packages.
The Debian Fonts Review service needs to be revived.
Various libre fonts are missing from Debian and need to be packaged.
Commonly Used Fonts
The fonts-liberation (ttf-liberation in squeeze) package supplies fonts with the same metrics as Times, Arial and Courier. These fonts are named Liberation and are present in most cases. If you require the non-free original Microsoft fonts the ttf-mscorefonts-installer package (in contrib) can be used to obtain them.
East Asian fonts: ttf-arphic-uming ttf-wqy-zenhei ttf-sazanami-mincho ttf-sazanami-gothic ttf-unfonts-core
(from Wikipedia: Help:Multilingual support (East Asian))
If you want to use non-free fonts like Calibri which originate from Microsoft Office, you can download and install them (gratis) from the Microsoft Powerpoint Viewer.
Troubleshooting
If fonts do not display properly, you may want o make sure the right font gets loaded, for example with:
fn-match -s Helvetica
If it doesn't, you may want to regenerate the caches with:
dpkg-reconfigure fontconfig fontconfig-config
You can also run this as a user with fc-cache -fv.
Otherwise, you can also look at the font in a viewer like font-manager.
Bugs
Usertags
The pkg-fonts team will use these tags for usertags (user: pkg-fonts-devel@lists.alioth.debian.org)
non-free: for packages that contain non-free fonts taken from the web (severity serious)
license-violation: for packages that contain fonts that are GPL/LGPL but do not distribute source (severity serious)
?contrib: for packages that contain free fonts that cannot be built with free tools (severity serious)
duplicate: for packages that contain fonts that duplicate fonts from other packages (severity normal?minor?wishlist?)
- split: for packages that contain fonts we would like to see split into other packages (severity wishlist)
fontconfig: for packages that should switch to dynamically looking up font paths using fontconfig (severity wishlist)
- render: for packages that should switch to a font renderer that automatically uses the right fonts (severity wishlist)
Font design and formats
Source Font Formats
SFD (Spline Font Database, ?FontForge's ASCII file format for vector fonts)
UFO (Unified Font Object)
Glyphs (proprietary format of Glyphs)
Generating Fonts from Source
The upstream build system should always be used for generating fonts. If upstream does not have a build system, then it is a good idea to contribute one to them based on the following Free Software tools.
The fontforge is an editor for outline and bitmap fonts that generates all kinds of fonts. It is also scriptable and has an addon tool xgridfit for hinting. Fonts using these tools can be found using these commands:
apt-cache rdepends fontforge apt-cache rdepends xgridfit
Output Font Formats
ttf, otf, bdf, pfb, fnt, woff
Font Tools
Tool |
Debian package |
Comments |
|
Programs for font conversion, testing, and other manipulation. |
|||
fttools |
|
|
|
|
|
||
freetype1-tools |
|
|
|
|
Font converter from TrueType to Adobe Type1. |
||
Command line utility that generates BDF bitmap fonts from ?OpenType fonts. |
|||
A Python library to open and manipulate OTF and TTF files. |
|||
Python program to show and compare fonts |
|||
Simple interface to show a preview of all fonts installed |
There are several font tools which are not included in Debian, but are used to produce fonts included in Debian:
|
Available in Debian although not yet in stable. |
|
Someone is working on inclusion into Debian. |
|
Someone requested inclusion into Debian. |
|
Someone needs to file an RFP or ITP bugreport and update this page with resulting bug number. |
|
Was available in Debian but is not part of stable or unstable. |
Tool |
Comments |
Further Resources
- Fonts
- Fonts/Bugs/duplicate
- Fonts/Bugs/fontconfig
- Fonts/Bugs/license-violation
- Fonts/Bugs/non-free
- Fonts/Bugs/rfn-violation
- Fonts/FAQ
- Fonts/Japanesefontpkg
- Fonts/JapanesefontpkgProposal
- Fonts/Legal
- Fonts/Missing
- Fonts/PackagingPolicy
- Fonts/ProprietaryJapaneseFonts
- Fonts/SvnHowTo
- Fonts/TODO
- Fonts/UnicodeCoverage
- HidekiYamane/fonts
- HidekiYamane/fonts/check-vlgothic
- HidekiYamane/fonts/free_nonfree_or_cannot_distribute
- InstallingDebianOn/Lenovo/Ideapad Yoga Slim 7 15IIL05 ( bullseye ) (firefox font configuration.png)
- OlivierFontes
- Portal/IDB (icon-font-32x32.png)
- ReproducibleBuilds/TimestampsInFontsGeneratedWithFontForge
- ReproducibleBuilds/TimestampsInFontsGeneratedWithFontForge (ttf-dejavu_2.33-3.debbindiff.html)
- Services/DebianFontReview
- SoundFont
- SubstitutingCalibriAndCambriaFonts
- SubstitutingCalibriAndCambriaFonts (Caladea.vs.Cambria-bitmap.png)
- SubstitutingCalibriAndCambriaFonts (LO_Options_Fonts.png)
- SummerOfCode2013/StudentApplications/OctaviFont
- Teams/pkg-fonts
- Teams/pkg-fonts/SVNTOGitMigration
- fr/Fonts
- fr/Fonts/Missing
- fr/Fonts/ppviewerFonts
- ko/Fonts
- pt_BR/Fonts
Chinese fonts in Debian - a blog post
Fedora fonts information
Arch Linux fonts documentation
Outdated
Old, retained for historical interest and reference:
TrueType Fonts in Debian mini-HOWTO – 2000 FAQ by Bear Giles
Debian Font Guide, Rob Weir