I was trying to get this to work for a good while with no luck.
Custom fonts worked with arial.ttf and Comic Sans MS.ttf but failed with all my less Microsoft-y custom fonts.
Right-clicking the font, selecting properties and setting “Build Action” to “content” fixed the problem.
I used a free program, FontForge, to the get the font family name.