Crash was occurred when referencing unallocated memory
Wrong memory of DefaultFont->FindFont was used with condition
(script = TextAbstraction::UNKNOWN and defaultFonts != NULL)
Signed-off-by: suhyung Eom <suhyung.eom@samsung.com>
Change-Id: Ifacceb7b6766156c7d3b11d2c2408f57dad2e6ee
currentFontId = fontId;
// Get the script for the current character.
- const Script script = GetScript( index,
+ Script script = GetScript( index,
scriptRunIt,
scriptRunEndIt );
description.path.c_str() );
}
#endif
+ if (script == TextAbstraction::UNKNOWN)
+ {
+ script = TextAbstraction::LATIN;
+ }
// Validate whether the current character is supported by the given font.
bool isValidFont = false;