From: Joe Wreschnig Date: Sun, 9 Jun 2013 22:37:31 +0000 (+0200) Subject: Use texCoords instead of tex_coords to match standard JavaScript fields. X-Git-Url: https://git.yukkurigames.com/?p=ttf-to-distfield.git;a=commitdiff_plain;h=refs%2Fheads%2Fmaster Use texCoords instead of tex_coords to match standard JavaScript fields. --- 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);