Ticket #3584: mythtv-caption_pre_cache_skip_control_chars.patch

File mythtv-caption_pre_cache_skip_control_chars.patch, 529 bytes (added by sphery <mtdean@…>, 13 years ago)
  • libs/libmythtv/ttfont.cpp

     
    651654   max_descent = 0;
    652655   max_ascent = 0;
    653656
    654    for (i = 0; i < 256; ++i)
     657   // Skip C0 control characters (0-31)
     658   for (i = 32; i < 127; ++i)
    655659        cache_glyph(i);
     660   // Skip C1 control characters (127-159)
     661   for (i = 160; i < 256; ++i)
     662        cache_glyph(i);
    656663
    657664   use_kerning = FT_HAS_KERNING(face);
    658665