Browsers render text without any ability to automatically balance text across lines. For example, when you have text spanning several lines, browsers render it something like this: Add 1 word at a time to the current line until no more words fit. Break text at that point and add the next word to a new... Continue reading →
Archive for January 30th, 2013
Winding rules in Canvas
What are winding rules? Paths are a very basic building block of any graphics library. Every time you draw a path, your browser needs to determine if a point on the canvas falls inside the enclosed curve. When the path is a simple circle or rectangle, this is obvious but when the path intersects itself... Continue reading →