ecj2 / momo

[NOT MAINTAINED / ABANDONED] A simple 2D game-making library written in JavaScript.
MIT License
1 stars 0 forks source link

Be able to use CSS fonts #9

Closed ecj2 closed 6 years ago

ecj2 commented 6 years ago

It would be nice to be able to use fonts that have already been declared by CSS rather than having to load font files manually. This would allow fonts to be loaded from sources like Google Fonts, as well as allow for Web safe fonts to be used with ease. Maybe an optional parameter could be used to denote that a name passed to Momo.loadFont() is declared in CSS so that a separate method need not be created.