diff options
author | Felix H. Dahlke <fhd@ubercode.de> | 2013-07-16 00:03:32 +0200 |
---|---|---|
committer | Felix H. Dahlke <fhd@ubercode.de> | 2013-07-16 00:03:32 +0200 |
commit | 1e8738f978f9ba91def484a051f9751c69bf2eb3 (patch) | |
tree | 3fea8c63b3c65cb0f353c24ed7414ba581fa1d5f | |
parent | 9bf755607fc7a0e7f446a5e2d6c82738d77d876f (diff) |
Implement TTF_FontHeight
-rw-r--r-- | src/library_sdl.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index b7d73862..a4f15597 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1760,6 +1760,11 @@ var LibrarySDL = { return Math.floor(fontData.size*0.02); // XXX }, + TTF_FontHeight: function(font) { + var fontData = SDL.fonts[font]; + return fontData.size; + }, + // SDL gfx $SDL_gfx: { |