commit | 0e0fdc5dc89e5079898c5da67b56f994c439fee1 | [log] [tgz] |
---|---|---|
author | Alexei Podtelezhnikov <apodtele@gmail.com> | Sat Jan 12 23:05:55 2013 -0500 |
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | Sat Jan 12 23:05:55 2013 -0500 |
tree | f7cb5875551458ec61b59ff509cd1a18c6061977 | |
parent | 081aba390a648fc10c7ae5e169861f2e9aae2aea [diff] |
[truetype] Improve accuracy of normalization of short vectors. Unit vector components are stored as 2.14 fixed-point numbers. In order to calculate all 14 bits accurately, a short vector to be normalized has to be upscaled to at least 14 bits before its length is calculated. This has been safe since accurate CORDIC algorithms were adopted. * src/truetype/ttinterp.c (Normalize): Scale short vectors by 0x4000.