Debian Developers - TrueType font policy / best practices?

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > April 2004 > TrueType font policy / best practices?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author TrueType font policy / best practices?
Wesley J Landaker

2004-03-28, 2:34 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks,

I'm looking at packaging some TrueType fonts, so I'm wondering if there is an official Debian "font policy" or at least a best practices document.

I know Debian Policy 11.8.5 talks about X-Window fonts, but it doesn't seem to address truetype fonts, packaging fonts using defoma, and so forth. A search on the Debian webpage didn't come up with anything super promising, but I may have just overlooked
something.

Can anyone point me in the right direction towards a document I should be referring to? Or should I instead rely on examining the packing of other ttf-* packages and following their lead?

Thanks guys!

- --
Wesley J. Landaker <wjl@icecavern.net>
OpenPGP FP: 4135 2A3B 4726 ACC5 9094 0097 F0A9 8A4C 4CD6 E3D2

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAZyaL8KmKTEzW49IRAq8cAJ9eu1On2zGG
R4/YeW3ubar57HxgYACgjXEd
gG/43oOUpBpxekx/Ro2S8V8=
=+PU6
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
William Ballard

2004-03-28, 3:34 pm

On Sun, Mar 28, 2004 at 12:25:23PM -0700, Wesley J Landaker wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi folks,
>
> I'm looking at packaging some TrueType fonts, so I'm wondering if there is an official Debian "font policy" or at least a best practices document.


http://egads.ertius.org/~rob/font_guide.txt
http://lists.debian.org/debian-user...0/msg03900.html


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
William Ballard

2004-03-28, 3:34 pm

On Sun, Mar 28, 2004 at 11:40:48AM -0800, William Ballard wrote:
> On Sun, Mar 28, 2004 at 12:25:23PM -0700, Wesley J Landaker wrote:
>
> http://egads.ertius.org/~rob/font_guide.txt
> http://lists.debian.org/debian-user...0/msg03900.html
>


Ah crap I misread your post. I saw "best practice" and "font" and went
off half-cocked. Sorry.


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Wesley J Landaker

2004-03-28, 8:35 pm

Pasi Kärkkäinen

2004-04-06, 7:41 am

On Sun, Mar 28, 2004 at 06:08:19PM -0700, Wesley J Landaker wrote:
> On Sunday 28 March 2004 12:42 pm, William Ballard wrote:
>
> Heh heh, that's okay. Actually, that font-guide documents is useful;
> I've read it before. =)
>
> If there isn't a specific sub-policy or other document that talks about
> packaging, I can probably work it out, as I've been peeking at how the
> other ttf-* packages work and it doesn't seem *too* hard. (I still need
> to understand defoma a little better, though...)
>


Please do so!

The whole font subject is a big mess in Debian.

There seems to be no policy about fonts, and nobody knows where to put them,
or how to handle them.

Some time ago people were told to add
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType to font path, but now that
directory seems to be empty? No fonts in there, just empty
fonts.dir/fonts.scale/fonts.alias files.

The ttf fonts seem to be in /usr/share/fonts/truetype/ directory, but there
are no fonts.dir/fonts.scale/fonts.alias files..

What path should I add to my fontpath to X (for gtk1/motif/etc apps) ?

(I'm using unstable)

Defoma/Fontconfig/X guys please tell (or better, write down) how things should
work!

1. In what directory all the (new) fonts should be/put in
2. What fontpaths need to be set/modified for new dirs (X/fontconfig/etc)
3. What's the purpose of defoma.. what does it do for the fonts
4. what is x-ttcidfont-conf and how it relates to these other things

Thanks.

-- Pasi Kärkkäinen

^
. .
Linux
/ - \
Choice.of.the
.Next.Generation.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Josselin Mouette

2004-04-06, 7:41 am

Le mar 06/04/2004 à 12:07, Pasi Kärkkäinen a écrit :
> The whole font subject is a big mess in Debian.
>
> There seems to be no policy about fonts, and nobody knows where to put them,
> or how to handle them.


The fonts should be put in /usr/share/fonts, and registered through
defoma. BTW, if they are registered through defoma, their location
doesn't matter for defoma and fontconfig, but FHS mandates a location.

> Some time ago people were told to add
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType to font path, but now that
> directory seems to be empty? No fonts in there, just empty
> fonts.dir/fonts.scale/fonts.alias files.


That shouldn't be. If you have some installed fonts, they should appear
here as symlinks if x-ttcidfont-conf is installed.

> The ttf fonts seem to be in /usr/share/fonts/truetype/ directory, but there
> are no fonts.dir/fonts.scale/fonts.alias files..


As it should be.

> What path should I add to my fontpath to X (for gtk1/motif/etc apps) ?


/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType

> (I'm using unstable)
>
> Defoma/Fontconfig/X guys please tell (or better, write down) how things should
> work!


You should start by reading fontconfig's README.Debian, which tries to
summarise this.

> 1. In what directory all the (new) fonts should be/put in
> 2. What fontpaths need to be set/modified for new dirs (X/fontconfig/etc)
> 3. What's the purpose of defoma.. what does it do for the fonts
> 4. what is x-ttcidfont-conf and how it relates to these other things


defoma is a font registry. If you register your fonts through defoma,
they are made available to both fontconfig and x-ttcidfont-conf (and
other font-using stuff). The purpose of the latter is to provide a
fontpath for legacy X applications that don't use fontconfig.
--
.''`. Josselin Mouette /\./\
: :' : josselin.mouette@ens-lyon.org
`. `' joss@debian.org
`- Debian GNU/Linux -- The power of freedom

Pasi Kärkkäinen

2004-04-06, 7:41 am

On Tue, Apr 06, 2004 at 12:16:21PM +0200, Josselin Mouette wrote:
> Le mar 06/04/2004 à 12:07, Pasi Kärkkäinen a écrit :
>
> The fonts should be put in /usr/share/fonts, and registered through
> defoma. BTW, if they are registered through defoma, their location
> doesn't matter for defoma and fontconfig, but FHS mandates a location.
>


OK. Good to know.

How does registering happen with defoma.. If I want to manually add some
fonts? I guess by using defoma-font.

Two cases:

1) Add a font(s) to existing fontdirectory
2) Add new fontdirectory with some fonts

defoma runs mkfontdir/mkfontscale automatically I guess..

I know I can add ttf fonts to fontconfig easily just by copying the fonts to
~/.fonts/. But If I want to install some fonts systemwide, the questions
above come to mind..

>
> That shouldn't be. If you have some installed fonts, they should appear
> here as symlinks if x-ttcidfont-conf is installed.
>


The problem was that x-ttcidfont-conf was removed automatically in some upgrade..
at least I didn't remove it myself

>
> As it should be.
>


OK.

>
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
>


Yep. Now, after installing x-ttcidfont-conf I see the fonts (links) here.

>
> You should start by reading fontconfig's README.Debian, which tries to
> summarise this.
>


Thanks. I didn't notice this file before.

>
> defoma is a font registry. If you register your fonts through defoma,
> they are made available to both fontconfig and x-ttcidfont-conf (and
> other font-using stuff). The purpose of the latter is to provide a
> fontpath for legacy X applications that don't use fontconfig.
>


OK.

Defome/x-ttcidfont-conf just feel so weird because they are only used in
Debian, and you can't find any definitive documentation for them

Font directories everywhere (/usr/share/fonts, /var/lib/defoma/*,
/usr/lib/X11/fonts) and when something is broken, you get easily quite
confused.

Thanks!

-- Pasi Kärkkäinen

^
. .
Linux
/ - \
Choice.of.the
.Next.Generation.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Wesley J Landaker

2004-04-06, 8:37 pm

Wesley J Landaker

2004-04-06, 8:37 pm

Arne Götje (高盛華)

2004-04-06, 10:36 pm

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> defoma is a font registry. If you register your fonts through defoma,
> they are made available to both fontconfig and x-ttcidfont-conf (and
> other font-using stuff). The purpose of the latter is to provide a
> fontpath for legacy X applications that don't use fontconfig.


The latter one does not always work, i.e. xcin and xfontsel. However I=20
cannot figure out why it does not work. The fonts are simple not found,=20
but xlsfonts displays them. So, until this mess is solved I create=20
manual entries in the traditional location /usr/lib/X11/fonts/TrueType/=20
and add the path before the defoma ones. This way all applications can=20
see the fonts. The only thing is: the fonts size to choose in xfontsel=20
is only 17, even if there are other entries in fonts.alias. BUt I=20
suppose this has nothing to do with Debian...

Cheers
Arne
=2D --=20
Arne G=C3=B6tje (=E9=AB=98=E7=9B=9B=E8=8F=AF) <20030910antispam@gmx.net>=20
(Spam catcher. Address might change in future!)
PGP/GnuPG key: 1024D/685D1E8C
=46ingerprint: 2056 F6B7 DEA8 B478 311F 1C34 6E9F D06E 685D 1E8C
Key available at wwwkeys.pgp.net. Encrypted e-mail preferred.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD4DBQFAc2Lybp/ QbmhdHowRAvGiAJYgACJ83k7bmteNFRA7XQmuAH1
yAKCELGFv
z8FCqJ0TNeXyEF7X6y6Niw=3D=3D
=3D1KDJ
=2D----END PGP SIGNATURE-----
Nathanael Nerode

2004-04-07, 12:35 am

Josselin Mouette wrote:

> Le mar 06/04/2004 =C3=A0 12:07, Pasi K=C3=A4rkk=C3=A4inen a =C3=A9cri=

t :
ut[color=darkred]
>=20
> The fonts should be put in /usr/share/fonts, and registered through
> defoma. BTW, if they are registered through defoma, their location
> doesn't matter for defoma and fontconfig, but FHS mandates a location=

..
<snip>

?[color=darkred]
>=20
> /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType

Why isn't this in XF86Config-4 by default? Oh, right, x-ttcidfont-conf=
is
strictly optional. OK, isn't there some way for it to magically make i=
ts
fonts available without requiring the admin to manually edit XF86Config=
-4?=20
Maybe via a local font server, or *something*?!?

<snip>
> defoma is a font registry. If you register your fonts through defoma,=


> they are made available to both fontconfig and x-ttcidfont-conf (and
> other font-using stuff). The purpose of the latter is to provide a
> fontpath for legacy X applications that don't use fontconfig.

Except that it doesn't work "out of the box". :-P

--=20
Make sure your vote will count.
http://www.verifiedvoting.org/
Arne Götje (高盛華)

2004-04-07, 3:33 am

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 07 April 2004 12:53, Nathanael Nerode wrote:
>
> Except that it doesn't work "out of the box". :-P


Yes, I got this problem, too...

Do you have a suggestion to solve this issue?

Cheers
Arne

=2D --=20
Arne G=C3=B6tje (=E9=AB=98=E7=9B=9B=E8=8F=AF) <20030910antispam@gmx.net>=20
(Spam catcher. Address might change in future!)
PGP/GnuPG key: 1024D/685D1E8C
=46ingerprint: 2056 F6B7 DEA8 B478 311F 1C34 6E9F D06E 685D 1E8C
Key available at wwwkeys.pgp.net. Encrypted e-mail preferred.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAc4zgbp/ QbmhdHowRAoLWAJ4rXI2gUkGWuk7nrW07xrEXwm2
uMwCg2pg6
LLQ6ARS06qXF2LYKll4oHtM=3D
=3Drt1M
=2D----END PGP SIGNATURE-----
Henning Makholm

2004-04-07, 12:35 pm

Scripsit Nathanael Nerode <neroden@twcny.rr.com>

[color=darkred]
[color=darkred]
> Why isn't this in XF86Config-4 by default? Oh, right, x-ttcidfont-conf is
> strictly optional. OK, isn't there some way for it to magically make its
> fonts available without requiring the admin to manually edit XF86Config-4?


Hmm, /etc/X11/XF86Config-4.d perhaps?

But I'm sure there's zillions of independent reasons not to do that.

--
Henning Makholm "Also, the letters are printed. That makes the task
of identifying the handwriting much more difficult."


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com