[Pkg-fonts-devel] Font review reloaded
Davide Viti
zinosat at tiscali.it
Fri Feb 15 18:34:01 UTC 2008
Hi Miriam,
On Fri, Feb 15, 2008 at 06:00:25PM +0100, Miriam Ruiz wrote:
> Is there any way to compare fonts (I'm thinking mostly about TTF) that
> would be independent of the instant of creation (assuming exactly the
> same sources)? I'm even thinking about having a big virtual canvas,
> drawing the fonts on it, and compare them, or something like that. Any
> ideas?
that's what I do everytime a new version of dejavu is released; and here is the code snippet
which does the trick (if anything's not clear I can explain it). Imagemagick is your friend!
a="${BASE}/${old}/${pkg}/${file}"
b="${BASE}/${new}/${pkg}/${file}"
c="${BASE}/${OUTDIR}/diff_${file}"
meas=$(compare -metric AE $a $b $c | grep dB | awk '{print $1}')
if [ ${meas} -eq 0 ] ; then
# png don't differ
mv $a ${BASE}/${OUTDIR}/common/
rm $b $c
else
echo "[${pkg}/${file/.png/}]"
fi
I collect the results here:
http://d-i.alioth.debian.org/gtk-frontend/screenshots/
you'll se no diffs here since there were no changes!
I'm setting up a wiki on Alioth mainly focused on fonts, were I'm planning to
write down the ideas I've gathered in the last couple of years which should
improve the quality of fonts. It'd be great if you'd like to contribute.
I'd like to prepare a few articles and publish those on planet debian
More about it in the very near future
ciao,
Davide
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-fonts-devel/attachments/20080215/d810d6d3/attachment.pgp
More information about the Pkg-fonts-devel
mailing list