Mercurial > hg > octave-lyh
changeset 17332:c8809de193a3
Handle 8-bits characters correctly in freetype renderer.
* libinterp/corefcn/txt-eng-ft.cc
(ft_render::visit(text_element_string)): Cast std::string characters to
"unsigned char" before being implicitly casted to FT_ULong.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Fri, 23 Aug 2013 18:48:42 -0400 |
parents | aa662d2e5829 |
children | 8cfc28809a07 |
files | libinterp/corefcn/txt-eng-ft.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/txt-eng-ft.cc +++ b/libinterp/corefcn/txt-eng-ft.cc @@ -638,7 +638,8 @@ for (size_t i = 0; i < str.length (); i++) { - glyph_index = process_character (str[i], previous); + glyph_index = process_character (static_cast<unsigned char> (str[i]), + previous); if (str[i] == '\n') previous = 0;