Reputation: 1585
I'm using FreeType to to generate a font for me. I'm aware that this does not work for HTML, but is there a way to keep the same code base and use FreeType for platforms that can support it but still be able to deploy to HTML?
Upvotes: 4
Views: 968
Reputation: 459
I like the simple way :-). Declare a public static boolean isHtml = false; in your main class, then from your HTMLLauncher class set it to true. Now before running the FreeType code, ask if (!isHtml) {... Happy days :-)
Upvotes: 1