Currently delving into JS after having experience in other programming languages. My focus right now is on creating a canvas that can display text.
https://jsfiddle.net/b5n2rypn/
The issue at hand:
Despite using the fillText method, no text appears on the canvas. Everything was functioning properly until I introduced the RichText
class and attempted to utilize its methods for drawing. No errors are showing up in the console, but I'm unable to pinpoint the root cause of the problem.
What could possibly be incorrect with the code?