[Fontconfig] where does fc-query get its fontversion from?
Nigel Tao
nigel.tao.gnome at gmail.com
Thu Apr 27 00:34:48 UTC 2017
A user of the Go Fonts asks me (at
https://github.com/golang/image/commit/f03a046406d4d7fbfd4ed29f554da8f6114049fc#commitcomment-21898082):
Fontconfig says that the font version is "2.2.12" but the git commit
message says the font version is 2.008. Why the difference?
$ printf "0x%x\n" $(fc-query -f '%{fontversion}' Go-Smallcaps.ttf)
0x2020c
I can see where 2.008 comes from, via ttx:
$ ttx -o /dev/stdout Go-Smallcaps.ttf | grep -C 1 '2\.'
<?xml version="1.0" encoding="ISO-8859-1"?>
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="2.4">
--
<tableVersion value="1.0"/>
<fontRevision value="2.00799560547"/>
<checkSumAdjustment value="0x84a5c1dc"/>
--
<namerecord nameID="5" platformID="1" platEncID="0" langID="0x0">
Version 2.008; ttfautohint (v1.6)
</namerecord>
--
<namerecord nameID="5" platformID="3" platEncID="1" langID="0x409">
Version 2.008; ttfautohint (v1.6)
</namerecord>
--
<post>
<formatType value="2.0"/>
<italicAngle value="0.0"/>
I have no idea where 2.2.12 is coming from. Do you fontconfig people
have any leads?
The actual .ttf file is at
https://go.googlesource.com/image/+/master/font/gofont/ttfs/
More information about the Fontconfig
mailing list