[Pkg-fonts-devel] Bug#652516: fontconfig priority should be separate from fontpackage itself

Osamu Aoki osamu at debian.org
Sun Dec 18 01:46:41 UTC 2011


Hi,

On Sun, Dec 18, 2011 at 09:56:33AM +0900, Osamu Aoki wrote:
...
> (You can pick any other nations sharing fonts but with different tastes)
> but each has some non-overlapping set of characters to cover large set
> of characters.)
> 
> I realized this can be solved by providing a set of packages for each
> nonlatin fonts.

After reading fontconfig bug reports for farsi and latin font issue,
this problem is more generic.  What is needed may be:

For all latin font bar, create 2 packages

   * fonts-foo (latin font)
     normal font package
     install 61-foo.conf
     Recommends: fonts-foo-latin

  * fonts-foo-latin
    Installing this package put it on the top of choice for latin
    fonts.  (I.e. system default)
    install 59-bar.conf (the same content as 61-foo.conf)
    Provides: fonts-latin
    Conflicts: fonts-latin

For all latin font bar, create 3 packages
   * fonts-bar (nonlatin font)
     normal font package
     install 66-bar.conf (current 64-wqy-zenhei.conf equivalent)
     Recommends: fonts-bar-nonlatin
     Suggests: fonts-bar-default

  * fonts-bar-nonlatin
    Installing this package put it on the top of choice for nonlatin
    fonts. (I.e., default for nonlatin)
    install 64-bar.conf (the same content as 66-bar.conf)
    Provides: fonts-nonlatin
    Conflicts: fonts-nonlatin

  * fonts-bar-default
    Installing this package put it on the top of choice for latin
    fonts even before fonts-foo-latin.  (I.e. system default)
    install 58-bar.conf (the same content as 66-bar.conf)
    Provides: fonts-default
    Conflicts: fonts-default

The use of 58 and 59 are out of fontconfig README range but this is the
only sane choice.

These require 3 virtual packages to be accepted.
 fonts-default   (on the top of all)
 fonts-latin     (on the top of latin fonts)
 fonts-nonlatin  (on the top of nonlatin fonts)

The use of virtual package ensures only one package is installed to claim its position.

If all debian font package uses this convention, fontconfig needs
minimum maintenance.

Osamu







More information about the Pkg-fonts-devel mailing list