How can I use the bod font in my project?
I can't find out how to use bold font. I want to know if it is eve supported on the Khan Javascript.
To change the font in Khan Academy JS to only bold, do
textFont(createFont(" Bold"));
To change the font to something else and bold, do something like
textFont(createFont("Comic Sans MS Bold"));
You can also make it italicized with `Italics` instead of `Bold`.
I've made a list of all the different fonts I know of and how to use them if that's helpful
https://www.khanacademy.org/computer-programming/the-library-of-fonts/4676057911705600
Please sign in to leave a comment.