Pages

February 8, 2007

Bit shifting

I always forget that shifting positive integers and negative integers always rounds down (not towards zero), such that 126705>>3 = 15838, but -126705>>3 = -15839, which, of course can be subtle but disastrous for things like, oh, I don't know, rasterization fill conventions. Its supposed to be "live and learn", but it seems like "live, rinse, and repeat"... fixed precision computer math requires surprisingly high attention and focus...

... sigh...

But even that aside, as someone recently pointed out to me, preserving symmetry and sub-pixel accuracy is still an unsolved problem (font hinting could be considered a special case of this domain). I think its not a rasterization problem, but a geometry problem - context matters.

2 comments:

new laptop battery said...

Thanks from specialize in laptop battery,laptop AC adapters. All our products are brand new, with the excellent service from our laptop battery of customer service team.
Thanks for your info. The most convenient and cheap replacement battery online shop in uk. We specialize in laptop batteries, laptop AC adapters.

All our laptop AC adapter are brand new, with the excellent service from our customer service team.

the most convenient and usa battery online shop in usa.
You can find some battery and adapter from here is very cool.

We specialize in laptop batteries,laptop AC adapters. All of batteries are brand new, with the excellent service from our customer service team, you can feel free to purchase on laptop battery!
Here is cheap laptop ac adapter online shop in uk. We specialize in batteries. All our au battery are brand new, with the excellent service from our customer service team.

Anonymous said...
This comment has been removed by a blog administrator.