[Python-apps-team] Bug#555984: Analysis and possible solution of ttf-thai-tlwg dependency

Osamu Aoki osamu at debian.org
Sat Sep 24 05:10:57 UTC 2011


tags 555984 patch
thanks 

Hi,

I also think phatch-cil should not have Thai font dependency just by
common sense.  Moreover forcing to install particular taste of Latin-1
fonts seems to me an excessive dependency in terms of the type of
service this package provides.

But I am sure maintainer had some very good reasons to create this seemingly
absurd dependency.  I see 2 references to such fonts in:
 data/actionlists/polaroid.phatch : "Purisa"
 phatch/actions/text.py :           "Free Sans"

I noticed that the upstream ships FreeSans.ttf and Purisa.ttf in its
source to use them as the default for these dialogues.  On Debian
system, these fonts from its source are not used in binary package.
Maintainer made those fonts available in usr/share/phatch/data/fonts/ by
creating symlinks and providing package dependency to ttf-freefont and
ttf-thai-tlwg.  This is better than installing additional these fonts on
our system in non-standard location but created funky dependency issue.

As I see phatch/lib/fonts.py, it seems to search for system font.  (I
did not read into it in details.)  So having private font data for
phatch may not be the inherent issue.

Since official fontconfig default name for such San Serif Font group on
Debian is "san-serif", I replce such default font references to this.
This should allow us to remove the unneeded font package dependency.

Then, I adjusted package control file and formaition of links.

I have not tested this patch yet but submitting this so we do not forget
this.

Osamu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phatch-0.2.7.1.diff
Type: text/x-diff
Size: 3762 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20110924/9bbdc22b/attachment.diff>


More information about the Python-apps-team mailing list