[Pkg-fonts-devel] Debtags localisation and font tags proposal

Paul Wise pabs at debian.org
Fri May 29 04:43:28 UTC 2009


On Fri, May 29, 2009 at 6:31 AM, Enrico Zini <enrico at enricozini.org> wrote:

> To have a software that generate a list of suitable fonts for a user
> would also require something more specific than tags. An example that
> Arne made was of a font which contains latin and cyrilic characters, but
> misses the special latin characters for Serbian.

The language stuff should be automatically generated from the fonts
themselves. I suggest basing that on what Fedora has done for
automatic font installation with PackageKit:

https://fedoraproject.org/wiki/Features/AutoFontsAndMimeInstaller

The technical details are that they run fc-query --format '%{=pkgkit}'
/tmp/newathu.ttf, which gives output like this:

$ fc-query --format '%{=pkgkit}' /tmp/newathu.ttf
font(newathenaunicode)
font(:lang=aa)
font(:lang=af)
font(:lang=an)
font(:lang=ast)
font(:lang=av)
font(:lang=ay)
font(:lang=be)
font(:lang=bg)
font(:lang=bi)
font(:lang=br)
font(:lang=bs)
font(:lang=ca)
font(:lang=ce)
font(:lang=ch)
font(:lang=co)
font(:lang=crh)
font(:lang=cs)
font(:lang=csb)
font(:lang=cy)
font(:lang=da)
font(:lang=de)
font(:lang=el)
font(:lang=en)
font(:lang=eo)
font(:lang=es)
font(:lang=et)
font(:lang=eu)
font(:lang=fi)
font(:lang=fil)
font(:lang=fj)
font(:lang=fo)
font(:lang=fr)
font(:lang=fur)
font(:lang=fy)
font(:lang=gd)
font(:lang=gl)
font(:lang=gv)
font(:lang=ho)
font(:lang=hr)
font(:lang=hsb)
font(:lang=ht)
font(:lang=hu)
font(:lang=ia)
font(:lang=id)
font(:lang=ie)
font(:lang=ik)
font(:lang=io)
font(:lang=is)
font(:lang=it)
font(:lang=jv)
font(:lang=ki)
font(:lang=kj)
font(:lang=kl)
font(:lang=ku-tr)
font(:lang=kum)
font(:lang=kw)
font(:lang=kwm)
font(:lang=la)
font(:lang=lb)
font(:lang=lez)
font(:lang=lg)
font(:lang=li)
font(:lang=lt)
font(:lang=lv)
font(:lang=mg)
font(:lang=mh)
font(:lang=mo)
font(:lang=ms)
font(:lang=mt)
font(:lang=na)
font(:lang=nb)
font(:lang=nds)
font(:lang=ng)
font(:lang=nl)
font(:lang=nn)
font(:lang=no)
font(:lang=nr)
font(:lang=nso)
font(:lang=ny)
font(:lang=oc)
font(:lang=om)
font(:lang=os)
font(:lang=pap-an)
font(:lang=pap-aw)
font(:lang=pl)
font(:lang=pt)
font(:lang=qu)
font(:lang=rm)
font(:lang=rn)
font(:lang=ro)
font(:lang=ru)
font(:lang=rw)
font(:lang=sc)
font(:lang=se)
font(:lang=sel)
font(:lang=sg)
font(:lang=shs)
font(:lang=sk)
font(:lang=sl)
font(:lang=sma)
font(:lang=smj)
font(:lang=smn)
font(:lang=sn)
font(:lang=so)
font(:lang=sq)
font(:lang=sr)
font(:lang=ss)
font(:lang=st)
font(:lang=su)
font(:lang=sv)
font(:lang=sw)
font(:lang=tk)
font(:lang=tl)
font(:lang=tn)
font(:lang=tr)
font(:lang=ts)
font(:lang=ty)
font(:lang=uk)
font(:lang=uz)
font(:lang=vo)
font(:lang=vot)
font(:lang=wa)
font(:lang=wen)
font(:lang=wo)
font(:lang=xh)
font(:lang=yap)
font(:lang=za)
font(:lang=zu)

fc-query will hopefully become available to Debian when fontconfig
2.7.0 is released. The output above is based on RPM's PROVIDES thing.
For Debian we could either invent another control field or use
"Provides: font-lang-<code>" in binary packages and Provides:
${font:Provides} in source packages and create a dh_font_provides or
similar.

fc-query also has human-readable output not dissimilar to the fc-match
-v output:

http://fpaste.org/paste/13184

-- 
bye,
pabs

http://wiki.debian.org/PaulWise



More information about the Pkg-fonts-devel mailing list