Invalid attribute 'name' in /usr/local/etc/fonts/local.conf
Mike Clarke
jmc-freebsd2 at milibyte.co.uk
Fri Dec 20 18:28:57 UTC 2013
curlew:/usr/local/etc/fonts# fc-cache -f
Fontconfig error: "local.conf", line 27: invalid attribute 'name'
Fontconfig error: "local.conf", line 35: invalid attribute 'name'
Fontconfig error: "local.conf", line 43: invalid attribute 'name'
Fontconfig error: "local.conf", line 51: invalid attribute 'name'
This appears to be the offending section of /usr/local/etc/fonts/local.conf
<match target="pattern" name="family">
<test qual="any" name="family">
<string>fixed</string>
</test>
<edit name="family" mode="assign">
<string>mono</string>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>console</string>
</test>
<edit name="family" mode="assign">
<string>mono</string>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>mono</string>
</test>
<edit name="spacing" mode="assign">
<int>100</int>
</edit>
</match>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>Helvetica</string>
</test>
<edit name="family" mode="assign">
<string>sans-serif</string>
</edit>
</match>
This is as suggested in section 6.5.1 of the FreeBSD Handbook but deleting
name="family" from the 'match' lines gets rid of the error messages. Is this
an error in the handbook or am I doing something wrong?
--
Mike Clarke
More information about the freebsd-questions
mailing list