Skip to content

Commit

Permalink
Fix for missing punctuation in custom fonts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Houx committed Oct 4, 2019
1 parent c1b020f commit 8c9c34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CinderImGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ ImFont* Renderer::addFont( const ci::fs::path &font, float size, const ImWchar*
// find glyph ranges
mFontsGlyphRanges.push_back( vector<ImWchar>() );
auto &ranges = mFontsGlyphRanges.back();
Font::Glyph start = glyphs[0] == 0 ? '0' : glyphs[0];
Font::Glyph start = glyphs[0] == 0 ? ' ' : glyphs[0];
for( size_t i = 1; i < numGlyphs; ++i ) {
if( glyphs[i] != glyphs[i-1] + 1 ) {
ranges.push_back( start );
Expand Down

0 comments on commit 8c9c34e

Please sign in to comment.