From b4714fa85c191b2b6d012dca5491d7e52902c62b Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Mon, 10 Jun 2013 00:37:31 +0200 Subject: [PATCH 1/1] Use texCoords instead of tex_coords to match standard JavaScript fields. --- ttf-to-distfield.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttf-to-distfield.cpp b/ttf-to-distfield.cpp index 231ff50..906c4c9 100644 --- a/ttf-to-distfield.cpp +++ b/ttf-to-distfield.cpp @@ -355,7 +355,7 @@ int main(int argc, char **argv) { glyph.advance_x, glyph.advance_y); fprintf(f, " \"offset\": [%g, %g],\n", glyph.left, glyph.top); - fprintf(f, " \"tex_coords\": [%g, %g, %g, %g]\n", + fprintf(f, " \"texCoords\": [%g, %g, %g, %g]\n", glyph.u0, glyph.v0, glyph.u1, glyph.v1); fprintf(f, " }"); total.blit(glyph.pixels, glyph.x, glyph.y); -- 2.20.1