Adding Character Spacing
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / text-controls / text-field-property-handler.cpp
index 6020ba7..c4080b7 100644 (file)
@@ -692,6 +692,14 @@ void TextField::PropertyHandler::SetProperty(Toolkit::TextField textField, Prope
       }
       break;
     }
+    case Toolkit::DevelTextField::Property::CHARACTER_SPACING:
+    {
+      const float characterSpacing = value.Get<float>();
+      DALI_LOG_INFO(gTextFieldLogFilter, Debug::General, "TextField %p CHARACTER_SPACING %d\n", impl.mController.Get(), characterSpacing);
+
+      impl.mController->SetCharacterSpacing(characterSpacing);
+      break;
+    }
   }
 }
 
@@ -1067,6 +1075,11 @@ Property::Value TextField::PropertyHandler::GetProperty(Toolkit::TextField textF
       GetStrikethroughProperties(impl.mController, value, Text::EffectStyle::INPUT);
       break;
     }
+    case Toolkit::DevelTextField::Property::CHARACTER_SPACING:
+    {
+      value = impl.mController->GetCharacterSpacing();
+      break;
+    }
   } //switch
   return value;
 }