Keep seperate pointers to font and border data for later re-use.
Removed pointless operation.
Created method for creating a border canvas.
Added test case comment.
Created method for adding space for borders.
Created method to create line canvas.
A more direct way to address potential DOM exception error.
Use new methods and remove duplicate code.
No need to pass color as an argument.
Throw an error if method is misused.
Removed comment.
No need to define fontCanvas here.
Only add borders when border size is 1 or greater.