freetype/truetype: fix rounding for negative numbers to match the C
Freetype implementation. The spec is the "Order of rounding operations" part of https://developer.apple.com/fonts/TTRefMan/RM02/Chap2.html#rounding but it wasn't exactly clear to me what "the negative round value closest to zero" was: if the phase is 1/4, was that value -1/4 or -3/4? Anyway, the Go code now follows the C code, and code trumps documentation. R=bsiegert CC=golang-dev https://codereview.appspot.com/14092044
Showing
想要评论请 注册 或 登录