Use texCoords instead of tex_coords to match standard JavaScript fields.
[ttf-to-distfield.git] / ttf-to-distfield.cpp
index 231ff50..906c4c9 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);
-        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);