" \"config\":\n"
" {\n"
" \"alwaysShowFocus\":false,\n"
- " \"clearFocusOnEscape\":false,\n"
- " \"customFontDirectory\":\"" DALI_STYLE_DIR "\"\n"
+ " \"clearFocusOnEscape\":false\n"
" },\n"
" \"styles\":\n"
" {\n"
DALI_TEST_CHECK( !alwaysShowFocus );
bool clearFocusOnEscape = config["clearFocusOnEscape"].Get<bool>();
DALI_TEST_CHECK( !clearFocusOnEscape );
- std::string customFontDirectory = config["customFontDirectory"].Get<std::string>();
- DALI_TEST_EQUALS( customFontDirectory, DALI_STYLE_DIR, TEST_LOCATION );
// For coverage
Toolkit::TextEditor editor = Toolkit::TextEditor::New();
- editor.SetProperty( TextEditor::Property::TEXT, "Test" );
editor.SetKeyboardFocusable( true );
Stage::GetCurrent().Add( editor );
// INTERNAL INCLUDES
#include <dali-toolkit/internal/text/multi-language-helper-functions.h>
-#include <dali-toolkit/devel-api/styling/style-manager-devel.h>
namespace Dali
{
// Initializes the valid fonts cache to NULL (no valid fonts).
// Reserves space to cache the valid fonts and access them with the script as an index.
mValidFontsPerScriptCache.Resize( TextAbstraction::UNKNOWN, NULL );
-
- // Add custom font directory
- Toolkit::StyleManager styleManager = Toolkit::StyleManager::Get();
- if( styleManager )
- {
- std::string path;
- Property::Map config = Toolkit::DevelStyleManager::GetConfigurations( styleManager );
- if( config["customFontDirectory"].Get( path ) )
- {
- TextAbstraction::FontClient fontClient = TextAbstraction::FontClient::Get();
- fontClient.AddCustomFontDirectory( path.c_str() );
- }
- }
-
}
MultilanguageSupport::~MultilanguageSupport()