add toggleForegroundBold method to 2d canvas