From a9acc7da836a2eeffff732563f2489a2ded8ece9 Mon Sep 17 00:00:00 2001 From: Kevin Moran Date: Thu, 24 Nov 2016 10:21:15 +1000 Subject: [PATCH] Export advance parameter in C metadata format --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index f475000..8c77a35 100644 --- a/index.html +++ b/index.html @@ -1072,7 +1072,7 @@

Font Texture Generator Online

var name = json.name.replace(/[^a-zA-Z0-9]/g, '_').replace(/_+/, '_').replace(/(?:^_|_$)/, ''); textarea.value = [].concat([ 'typedef struct Character {', - ' int codePoint, x, y, width, height, originX, originY;', + ' int codePoint, x, y, width, height, originX, originY, advance;', '} Character;', '', 'typedef struct Font {', @@ -1092,6 +1092,7 @@

Font Texture Generator Online

', ' + character.x + ', ' + character.y + ', ' + character.width + ', ' + character.height + ', ' + character.originX + ', ' + character.originY + + ', ' + character.advance + '},'; }), ['};',