[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#478704: texlive-xetex: 478704: fontconfig instead



On Sa, 05 Dez 2009, Paul Wise wrote:
> > The discussion on the bug report shows that it goes down 100 levels
> > of dirs including symlinks.
> 
> Cool. That should be enough levels too.

Definitely ;-)

> fontconfig is already trigger-enabled, but it doesn't know about the
> non-standard path TeXLive uses for fonts.

Ahhhh I didn't get that one ... so only in case I put the fonts
somewhere else but under /u/s/f/... I would need some action.

> > A. I call fc-cache in every font shipping package
> > B. I do NOT call fc-cache ...
> 
> You should do B....

Got that now.

> I guess moving all the fonts to the standard /u/s/f/{t,o}/ directory is
> out of the question?

Yes. Many of the fonts are already in the 2007 packages under
/u/s/texmf-texlive/fonts/ as files. We need them *there* (as links or
files) because of mktexlsr is searching only there. So moving the
actual fonts there would mean converting the font files under
/u/s/texmf-texlive/fonts/... into links, and you know what that means
wrt preinst/postinst scripts, PITA.

Thinking about the way triggers work I guess I have to actually 
*link* each font file to its respective place in under /u/s/fonts/...
Why? Becasue if we only link 
	/u/s/fonts/type1/texlive -> /u/s/texmf-texlvie/fonts/type1
in texlive-common, then fc-cache will be triggered when texlive-common
is installed/upgraded, but NOT if any other package drops files into
/usr/share/texmf-texlive/fonts/type1. 

Bummer. 

So simply linking the top level dirs does not help ... dpkg only
sees that I drop file sinto /usr/share/texmf-texlive/... and not
into /usr/share/fonts/..., so it will never execute the trigger.

I guess I have to implement the "Link every .otf and pfb file"
feature in our meta scripts. (hmmm, maybe that is as simple
as adding two lines to our tpm2deb.cfg file ... I have to try.)

Best wishes

Norbert
------------------------------------------------------------------------
Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan            TU Wien, Austria           Debian TeX Task Force
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
POONA (n.)
Satisfied grunting noise made when sitting back after a good meal.
			--- Douglas Adams, The Meaning of Liff



Reply to: