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.2.6.5
parent
081aba390a
commit
0e0fdc5dc8
2 changed files with 16 additions and 6 deletions
Loading…
Reference in new issue