Use texCoords instead of tex_coords to match standard JavaScript fields. master
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sun, 9 Jun 2013 22:37:31 +0000 (00:37 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sun, 9 Jun 2013 22:37:31 +0000 (00:37 +0200)
ttf-to-distfield.cpp

index 231ff50cb8f6e01cc81e0f0669737d138b7b1f67..906c4c9edda748cf6ff9d2c68b2371d1ec6723c3 100644 (file)
@@ -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);
                 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);
                 glyph.u0, glyph.v0, glyph.u1, glyph.v1);
         fprintf(f, "        }");
         total.blit(glyph.pixels, glyph.x, glyph.y);