Add fontSize, fontFamily, letterSpacing to calculateCharacterWidth()

Using only the `font` property to calcularte character width broke in firefox. Explicite use of fontSize, fontFamily, letterSpacing fixed this.