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/?a=commitdiff_plain;ds=inline;h=HEAD;hp=fb0292775c126c393d2f9d4f52518cd3bd228bc0;p=ttf-to-distfield.git 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);