[Pkg-fonts-devel] Fonts from package misbehave in exported PDF

Norbert Preining preining at logic.at
Tue Aug 28 08:27:05 UTC 2012


Hi Fabian,

On Di, 28 Aug 2012, Fabian Greffrath wrote:
>> - the characters outside the iso range are unencoded chars in the afm,
>>   so I guess that is the problem why libreoffice recreates them in a
>>   strange way, or better the export to pdf is broken
>
> So this is a bug in libreoffice?

GOod question. I guess so. I don't know how the pdfs are produced,
but from looking at the problematic examples it seems that for
combining say "a" with some diacritic foo it does the following:
	print "a"
	go back the width of "a"
	print foo
but what it should do is
	print "a"
	go back width of "a"
	print foo
	go forward width of "a" - width of foo
But to be honest, that is WILD WILD guessing.

> I find this strange, as the fontconfig package trigger already declares 
> interest in this directory, but fontconfig itself does not include it in 
> its search path?

Yes, known. I have opened a bug some time ago against fontconfig. THee
is a reason for that. At some point, and I don't know if it is
still like this, some of the fonts in the texmf trees were not 
well behaved, declaring wrong encodings etc. THis is ok as long as you
use them only in TeX world because there the encodings are done for
each font, but if you access them with font config then you might
see garble.

So the trigger should actually be removed.

OTOH, someone (definetly not me!) could go through the fonts (all, or only
ttf/otf) shipped in texlive-* and realted packages, or all fonts under
/usr/share/texmf/fonts and /usr/share/texlive/texmf-dist/fonts/ and
check the fonts whether they are ok (don't ask me to define what means
ok!) and link those fonts into /usr/share/fonts which is crawled by
fontconfig.

Best wishes

Norbert
------------------------------------------------------------------------
Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
TREWOFFE (n.)
A very thick and heavy drift of snow balanced precariously on the
edge of a door porch waiting for what it judges to be the correct
moment to fall. From the ancient Greek legend 'The Treewofe of
Damocles'.
			--- Douglas Adams, The Meaning of Liff



More information about the Pkg-fonts-devel mailing list