Skip to content

Commit

Permalink
Merge pull request rougier#153 from chris-b-h/master
Browse files Browse the repository at this point in the history
Exposed texture_font_find_glyph to the API
  • Loading branch information
rougier authored Feb 5, 2017
2 parents db0928b + bc0b4cf commit d8ba5e5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion texture-font.h
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,18 @@ typedef struct texture_font_t
texture_font_get_glyph( texture_font_t * self,
const char * codepoint );


/**
* Request an already loaded glyph from the font.
*
* @param self A valid texture font
* @param codepoint Character codepoint to be found in UTF-8 encoding.
*
* @return A pointer on the glyph or 0 if the glyph is not loaded
*/
texture_glyph_t *
texture_font_find_glyph( texture_font_t * self,
const char * codepoint );

/**
* Request the loading of a given glyph.
*
Expand Down

0 comments on commit d8ba5e5

Please sign in to comment.