Programaticaly creating function graphs

You can explicitly set the point size on “dynamic” fonts, which are .ttf files and what not. You can’t set it on “static” fonts, which are .egg files or .bam files. So if you call:

font.setPointSize(10)

it might fail, according to what kind of font file you’ve got. This is why it’s not a good idea to make this call directly; instead, use the pointSize = xx parameter to loader.loadFont(), which will properly ignore the setting if it can’t be set.

Of course, the default point size is 10 anyway, so this is not a particularly useful call. All it’s doing is making your code less portable.

David