Comment 16 for bug 308539

Revision history for this message
KeithG (grider-4) wrote :

Related problem in 10.04. In 9.10, the defoma-hint would not run at all. The dependency listed here was the problem. In 10.04, the dependency was fixed somehow, but it still does not create a hint file from ttf fonts (that is all I have tried) installed 'loose' (not packaged). The fix is a 1 line edit to a script which is detailed here:
http://us.generation-nt.com/answer/bug-231616-defoma-apply-patch-please-help-168894811.html

I applied this patch and was able to generate a hint file for a couple of esoteric fonts we are using. (it is from 2004?!?!)

/usr/share/defoma/libperl-hint.pl.orig 2004-08-21 13:29:31.000000000 -0400
+++ /usr/share/defoma/libperl-hint.pl 2004-08-31 13:13:55.000000000 -0400
@@ -39,7 +39,7 @@
foreach my $f (defoma_font_get_fonts($c)) {
my @h = defoma_font_get_hints($c, $f);
next unless (@h);
- while ($h[0] !~ /^--/) {
+ while (@h && $h[0] !~ /^--/) {
shift(@h);
}
push(@hints, @h);