Re: where does fc-query get its fontversion from?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Thu, Apr 27, 2017 at 10:34:48AM +1000, Nigel Tao wrote:
> A user of the Go Fonts asks me (at
> 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

It comes from the head table and is encoded as 16.16 fixed-point number:

So 131596 / 65536.0 = 2.008.

Fontconfig mailing list

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux