// Check font properties.
editor.SetProperty( TextEditor::Property::FONT_FAMILY, "Setting font family" );
DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::FONT_FAMILY ) != std::string("Setting font family"), "Set/Get Property mismatch" );
- editor.SetProperty( TextEditor::Property::FONT_STYLE, "Setting font style" );
- DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::FONT_STYLE ) != std::string("Setting font style"), "Set/Get Property mismatch" );
+ editor.SetProperty( TextEditor::Property::FONT_STYLE, "{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}" );
+ DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::FONT_STYLE ) != std::string("{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}"), "Set/Get Property mismatch" );
editor.SetProperty( TextEditor::Property::POINT_SIZE, 10.f );
DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::POINT_SIZE ) - 10.f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
// Check input font properties.
editor.SetProperty( TextEditor::Property::INPUT_FONT_FAMILY, "Setting input font family" );
DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::INPUT_FONT_FAMILY ) != "Setting input font family", "Set/Get Property mismatch" );
- editor.SetProperty( TextEditor::Property::INPUT_FONT_STYLE, "Setting input font style" );
- DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::INPUT_FONT_STYLE ) != "Setting input font style", "Set/Get Property mismatch" );
+ editor.SetProperty( TextEditor::Property::INPUT_FONT_STYLE, "{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}" );
+ DALI_CHECK_FAIL( editor.GetProperty<std::string>( TextEditor::Property::INPUT_FONT_STYLE ) != "{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}", "Set/Get Property mismatch" );
editor.SetProperty( TextEditor::Property::INPUT_POINT_SIZE, 12.f );
DALI_CHECK_FAIL( editor.GetProperty<float>( TextEditor::Property::INPUT_POINT_SIZE ) - 12.f > Math::MACHINE_EPSILON_1000, "Set/Get Property mismatch" );
textField.SetProperty( TextField::Property::FONT_FAMILY, "Setting font family" );
DALI_CHECK_FAIL( textField.GetProperty<std::string>( TextField::Property::FONT_FAMILY ) != std::string("Setting font family"), "Property value not match." );
- textField.SetProperty( TextField::Property::FONT_STYLE, "Setting font style" );
- DALI_CHECK_FAIL( textField.GetProperty<std::string>( TextField::Property::FONT_STYLE ) != std::string("Setting font style"), "Property value not match." );
+ textField.SetProperty( TextField::Property::FONT_STYLE, "{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}" );
+ DALI_CHECK_FAIL( textField.GetProperty<std::string>( TextField::Property::FONT_STYLE ) != std::string("{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}"), "Property value not match." );
textField.SetProperty( TextField::Property::POINT_SIZE, 10.f );
DALI_CHECK_FAIL( textField.GetProperty<float>( TextField::Property::POINT_SIZE ) - 10.f> Math::MACHINE_EPSILON_1000, "Property value not match." );
textField.SetProperty( TextField::Property::INPUT_FONT_FAMILY, "Setting input font family" );
DALI_CHECK_FAIL( textField.GetProperty<std::string>( TextField::Property::INPUT_FONT_FAMILY ) != "Setting input font family", "Property value not match." );
- textField.SetProperty( TextField::Property::INPUT_FONT_STYLE, "Setting input font style" );
- DALI_CHECK_FAIL( textField.GetProperty<std::string>( TextField::Property::INPUT_FONT_STYLE ) != "Setting input font style", "Property value not match." );
+ textField.SetProperty( TextField::Property::INPUT_FONT_STYLE, "{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}" );
+ DALI_CHECK_FAIL( textField.GetProperty<std::string>( TextField::Property::INPUT_FONT_STYLE ) != "{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}", "Property value not match." );
+
textField.SetProperty( TextField::Property::INPUT_POINT_SIZE, 12.f );
DALI_CHECK_FAIL( textField.GetProperty<float>( TextField::Property::INPUT_POINT_SIZE ) - 12.f > Math::MACHINE_EPSILON_1000, "Property value not match." );
label.SetProperty( TextLabel::Property::FONT_FAMILY, "Setting font family" );
DALI_CHECK_FAIL( label.GetProperty<std::string>( TextLabel::Property::FONT_FAMILY ) != std::string("Setting font family"), "TextLabel font family set/get failed." );
- label.SetProperty( TextLabel::Property::FONT_STYLE, "Setting font style" );
- DALI_CHECK_FAIL( label.GetProperty<std::string>( TextLabel::Property::FONT_STYLE ) != std::string("Setting font style"), "TextLabel font style set/get failed." );
+ label.SetProperty( TextLabel::Property::FONT_STYLE, "{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}" );
+ DALI_CHECK_FAIL( label.GetProperty<std::string>( TextLabel::Property::FONT_STYLE ) != std::string("{\"weight\":\"bold\",\"width\":\"condensed\",\"slant\":\"italic\"}"), "TextLabel font style set/get failed." );
label.SetProperty( TextLabel::Property::POINT_SIZE, 10.f );
DALI_CHECK_FAIL( label.GetProperty<float>( TextLabel::Property::POINT_SIZE ) != 10.f, "TextLabel point size set/get failed." );