The error: The FreeType 2 library hasn't been initialized: how to solve?

When I run my custom mode, it throws me the following error:

The FreeType 2 library hasn’t been initialized

Is there a way to make it work?

My mode is here: Mod 2B. · GitHub

Are you missing ‘pass’ on line 51?
Do you have your font.ttf in the root directory of the mode?

Hello, chrisk!

Thank you for your time. Indeed, there is no pass on line 51. Also, I have the font.ttf in my root directory of the mode, yet whatever font I use, the same error message persists.