Differences between revisions 54 and 56 (spanning 2 versions)
Revision 54 as of 2013-08-23 00:57:16
Size: 12434
Editor: ?shawnlandden
Comment:
Revision 56 as of 2013-09-02 18:30:17
Size: 12421
Editor: ?hadrons123
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
Line 4: Line 5:
Fonts can be added to Debian by installing the appropriate package; in Squeeze, fonts are specified in the “Fonts” section.
 * DebianPkg:lenny/x11/
Fonts can be added to Debian by installing the appropriate package; in Wheezy and Squeeze, fonts are specified in the “Fonts” section.
 * DebianPkg:wheezy/fonts/
Line 9: Line 10:
 * For most uses, you’ll want TrueType (TTF) and OpenType (OTF) fonts – these packages start with `fonts-` for wheezy (`ttf-` or `otf-` for squeeze)  * For most uses, you’ll want TrueType (TTF) and !OpenType (OTF) fonts – these packages start with `fonts-` for wheezy (`ttf-` or `otf-` for squeeze)
Line 11: Line 12:
 * Any TTF, OTF, or TTC (TrueType Collection) files can be manually installed on an ad hoc basis.  * Any TTF, OTF, or TTC (!TrueType Collection) files can be manually installed on an ad hoc basis.
Line 46: Line 47:
See all the TrueType (TTF) and OpenType (OTF) fonts included in Debian for usage on Windows or Mac OS X at http://fonts.debian.net/. See all the !TrueType (TTF) and !OpenType (OTF) fonts included in Debian for usage on Windows or Mac OS X at http://fonts.debian.net/.
Line 52: Line 53:
The [[http://packages.debian.org/search?keywords=ttf-liberation&searchon=name|ttf-liberation]] 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 [[http://packages.debian.org/search?keywords=ttf-mscorefonts-installer&searchon=name|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 http://en.wikipedia.org/wiki/Help:Multilingual_support_(East_Asian)#Debian-based_GNU.2FLinux )
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)]])
Line 221: Line 222:
The [[http://packages.debian.org/fontforge|fontforge]] is an editor for outline and bitmap fonts that generates all kinds of fonts. It is also scriptable and has an addon tool [[http://packages.debian.org/xgridfit|xgridfit]] for hinting. The following fonts are built from sfd (found using apt-cache rdepends fontforge):

- [[http://packages.debian.org/ttf-junicode|ttf-junicode]]

- [[http://packages.debian.org/ttf-beteckna|beteckna]]

- [[http://packages.debian.org/ttf-essays1743|essays1743]]

- [[http://packages.debian.org/ttf-atarismall|ttf-atarismall]]

- [[http://packages.debian.org/ttf-breip|ttf-breip]]
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. The following fonts are built from sfd (found using apt-cache rdepends fontforge):

 * DebianPkg:ttf-junicode
 * [[DebianPkg:ttf-beteckna|beteckna]]
 * [[DebianPkg:ttf-essays1743|essays1743]]
 * DebianPkg:ttf-atarismall
 * DebianPkg:ttf-breip
Line 243: Line 240:
texlive-font-utils, fttools, ttf2tex, freetype1-tools, ttf2pt1, otf2bdf DebianPkg:texlive-font-utils, fttools, ttf2tex, freetype1-tools, ttf2pt1, DebianPkg:otf2bdf
Line 246: Line 243:
The default fonts in Debian derived distributions like Ubuntu and Linux Mint have better looking fonts when compared to default Debian squeeze. A lot of things about the cairo package has changed recently in wheezy and unstable which have brought almost the same font setup to Debian (But not Squeeze or old) but you have to set it up to your liking. You can create a .fonts.conf file to any user account home folder to set this up. Patching and rebuilding of Cairo packages are not needed any more. An Example of .fonts.conf which you can add to your user account home folder without altering anything else: The default fonts in Debian derived distributions like Ubuntu and Linux Mint have better looking fonts when compared to default Debian squeeze. A lot of things about the cairo package has changed recently in wheezy and unstable which have brought almost the same font setup to Debian (But not Squeeze or old) but you have to set it up to your liking. You can create a .fonts.conf file to any user account home folder to set this up. Patching and rebuilding of Cairo packages are not needed any more. An example of .fonts.conf which you can add to your user account home folder without altering anything else:
Line 281: Line 278:
Fonts and Debian: [[http://pkg-fonts.alioth.debian.org/review/|existing]] and [[http://wiki.debian.org/Fonts/Missing|missing]] Fonts and Debian: [[http://pkg-fonts.alioth.debian.org/review/|existing]] and [[Fonts/Missing|missing]]
Line 283: Line 280:
[[http://www.infinality.net/blog/|Infinality]] font settings and Infinality-freetype are not yet available for Debian in official repositories. But there are third party git repos you can use to get the packages working for you. Currently a working third party git repo is available at [[https://github.com/chenxiaolong/Debian-Packages.git| chenxiaolong]] for all Debian architectures . The instructions to build are available at the same site too. [[http://www.infinality.net/blog/|Infinality]] font settings and Infinality-freetype are not yet available for Debian in official repositories. But there are third party git repos you can use to get the packages working for you. Currently a working third party git repo is available at [[https://github.com/chenxiaolong/Debian-Packages.git| chenxiaolong]] for all Debian architectures . Infinality font config Debian build instructions with prebuilt binaries for amd64 are available for easy installation in [[http://forums.debian.net/viewtopic.php?f=16&t=88545|Debian forums]] created by a user.
Line 292: Line 289:
 * [[http://wiki.archlinux.org/index.php/Font_Configuration|Font Configuration]], ArchLinux Wiki – useful general information  * [[http://wiki.archlinux.org/index.php/Font_Configuration|Font Configuration]], !ArchLinux Wiki – useful general information

Adding fonts

Fonts can be added to Debian by installing the appropriate package; in Wheezy and Squeeze, fonts are specified in the “Fonts” section.

Note:

  • For most uses, you’ll want TrueType (TTF) and OpenType (OTF) fonts – these packages start with fonts- for wheezy (ttf- or otf- for squeeze)

  • Some non-free fonts are in contrib, which you will need to add to your sources if no present.

  • Any TTF, OTF, or TTC (TrueType Collection) files can be manually installed on an ad hoc basis.

    • GNOME way: opening a Nautilus window to fonts:// and dragging and dropping.

    • Command line: copy a font file in the directory /usr/local/share/fonts (for all users) or ~/.fonts (for a specific user).

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).

You may check that the fonts are present by checking for them in an application (such as a word processor) or by using the command fc-list – in future the (GNOME) font-manager may provide a good list. If fonts do not show up, try fc-cache -fv to force a rebuild of the font list.

Configuration

fontconfig is the underlying configuration tool; you may find the following programs useful:

  • fc-list – lists fonts

  • fc-cache -fv – rebuilds cached list of fonts

To view list of monospaced clint-side fonts (available from Xft, so it is possible to apply font hinting and antialiasing):

  $ fc-list :spacing=mono

To view 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 find the following useful to change default font rendering:

  $ dpkg-reconfigure fontconfig-config
  $ dpkg-reconfigure fontconfig

Lists

See all the TrueType (TTF) fonts included in Debian at http://pkg-fonts.alioth.debian.org/review/ (updated weekly), http://www.miriamruiz.es/debfonts/ or http://fonts.debian.net/.

See all the TrueType (TTF) and OpenType (OTF) fonts included in Debian for usage on Windows or Mac OS X at http://fonts.debian.net/.

email lists: CJKUnifonts-devel CJKUnifonts-HakkaIM CJKUnifonts-MinnanIM Freefont-devel Pkg-fonts-bugs Pkg-fonts-commits Pkg-fonts-devel

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))

Debian Fonts Task Force

http://pkg-fonts.alioth.debian.org/

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)
  • 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)

Templates

non-free

To:      Debian Bug Tracking System <submit@bugs.debian.org>
Subject: <package>: contains non-free font

Package: 
Version: 
Severity: serious
User: pkg-fonts-devel@lists.alioth.debian.org
Usertags: non-free
X-Debbugs-CC: pkg-fonts-devel@lists.alioth.debian.org

Your package contains a non-free font:

<filename in Debian here>
<url to the pkg-fonts review page here>

This looks to be from here:

<upstream URLs here>

From the zip file:

/----------------------------------------------------------------
<upstream licence here>
\----------------------------------------------------------------

This licence does not clearly allow all the DFSG-required freedoms:

http://www.debian.org/social_contract#guidelines

Please contact the font author and ask them to licence the font
under a DFSG-compliant font licence such as the OFL:

http://scripts.sil.org/OFL
http://scripts.sil.org/OFL_web
http://scripts.sil.org/OFL-FAQ_web

If they are not willing to do so or cannot be contacted, please remove
the font from the binary package and the source package and depend on
another font package or move the package to non-free.

Please contact your upstream and ask them to use fontconfig or similar
to get fonts for use by the software instead of using a specific font.

This message is brought to you by the Debian Fonts Task Force:

http://wiki.debian.org/Fonts

license-violation

To:      Debian Bug Tracking System <submit@bugs.debian.org>
Subject: <package>: violates font license

Package: 
Version: 
Severity: serious
User: pkg-fonts-devel@lists.alioth.debian.org
Usertags: license-violation
X-Debbugs-CC: pkg-fonts-devel@lists.alioth.debian.org

Your package contains a GPL/LGPL font:

<package>: <filename in Debian here>
<url to the pkg-fonts review pages here>

This looks to be from here:

<upstream URLs here>

Your source package contains the binary font:

<srcpackage>: <font filename within source package>

The font's source code appears to be here:

<upstream source code URL>
<filenames of the source code in upstreams archive>

Your source package does not contain the font source code, therefore your distribution of the font constitutes a violation of the license.

Please notify your upstream that they are violating the font license.

Please remove the font from the binary package and the source package and depend on the font package instead.

Please contact your upstream and ask them to use fontconfig or similar
to get fonts for use by the software instead of using a specific font.

This message is brought to you by the Debian Fonts Task Force:

http://wiki.debian.org/Fonts

duplicate

To:      Debian Bug Tracking System <submit@bugs.debian.org>
Subject: <package>: contains duplicate font

Package: 
Version: 
Severity: wishlist
User: pkg-fonts-devel@lists.alioth.debian.org
Usertags: duplicate
X-Debbugs-CC: pkg-fonts-devel@lists.alioth.debian.org

Your package contains a duplicate font:

<filename in Debian here>
<url to the pkg-fonts review page here>

This looks to be from here:

<url to the packages.debian.org page for the font package>
<url to the pkg-fonts review page here>

Please remove the font from the binary package and depend on the
package containing the font you are using.

If your package cannot use fontconfig to search for fonts, please
contact your upstream and ask them to use fontconfig or similar
to get fonts for use by the software instead of using a specific font.

If that isn't possible you should ask them to allow a build-time
configuration option to hardcode a specific font file path.

If that isn't possible then you will need to create a symlink from
the font file path that your package uses to the font file path
in the font package.

This message is brought to you by the Debian Fonts Task Force:

http://wiki.debian.org/Fonts

Source Font Formats

sfd (fontforge's ascii file format for vector fonts) UFO (Unified Font Object)

Generating Fonts from Source

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. The following fonts are built from sfd (found using apt-cache rdepends fontforge):

I created some script to create bold, italic, and condensed typefaces out of sfd fonts:

sfd2*.ff

Font Formats

ttf, otf, bdf, pfb, fnt

Font Tools

texlive-font-utils, fttools, ttf2tex, freetype1-tools, ttf2pt1, otf2bdf

Subpixel-hinting and Font-smoothing

The default fonts in Debian derived distributions like Ubuntu and Linux Mint have better looking fonts when compared to default Debian squeeze. A lot of things about the cairo package has changed recently in wheezy and unstable which have brought almost the same font setup to Debian (But not Squeeze or old) but you have to set it up to your liking. You can create a .fonts.conf file to any user account home folder to set this up. Patching and rebuilding of Cairo packages are not needed any more. An example of .fonts.conf which you can add to your user account home folder without altering anything else:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
  <match target="font">
    <edit mode="assign" name="lcdfilter">
      <const>lcddefault</const>
    </edit>
  </match>
</fontconfig>

Fontconfig

Fonts and Debian: existing and missing

Infinality for Debian

Infinality font settings and Infinality-freetype are not yet available for Debian in official repositories. But there are third party git repos you can use to get the packages working for you. Currently a working third party git repo is available at chenxiaolong for all Debian architectures . Infinality font config Debian build instructions with prebuilt binaries for amd64 are available for easy installation in Debian forums created by a user.

Font related pages:

Further Resources

Outdated

Old, retained for historical interest and reference: