comparison Core/Images/Font.cpp @ 2914:15b517659a74

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 31 Oct 2018 18:07:28 +0100
parents 058851941abe
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
2913:058851941abe 2914:15b517659a74
351 void Font::ComputeTextExtent(unsigned int& width, 351 void Font::ComputeTextExtent(unsigned int& width,
352 unsigned int& height, 352 unsigned int& height,
353 const std::string& utf8) const 353 const std::string& utf8) const
354 { 354 {
355 width = 0; 355 width = 0;
356 height = 0;
356 357
357 #if ORTHANC_ENABLE_LOCALE == 1 358 #if ORTHANC_ENABLE_LOCALE == 1
358 std::string s = Toolbox::ConvertFromUtf8(utf8, Encoding_Latin1); 359 std::string s = Toolbox::ConvertFromUtf8(utf8, Encoding_Latin1);
359 #else 360 #else
360 // If the locale support is disabled, simply drop non-ASCII 361 // If the locale support is disabled, simply drop non-ASCII