X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fshared-javascript-and-cpp-documentation%2Ffont-selection.md;h=f7855fef3f48b0161c4b27605056667c9bb5d9f7;hb=a553fa0d7b974732895ef7d4f0c629f9894d115b;hp=d2bda2de2d99ba3a60f8742ec47a15161ef9dc97;hpb=2c2f52b1e6f532312359afbf5910a44943bbb87b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/docs/content/shared-javascript-and-cpp-documentation/font-selection.md b/docs/content/shared-javascript-and-cpp-documentation/font-selection.md index d2bda2d..f7855fe 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/font-selection.md +++ b/docs/content/shared-javascript-and-cpp-documentation/font-selection.md @@ -54,7 +54,9 @@ Alternatively a font may be requested using either or all of FONT_FAMILY, FONT_S // C++ label.SetProperty( TextLabel::Property::FONT_FAMILY, "FreeSerif" ); -label.SetProperty( TextLabel::Property::FONT_STYLE, "{\"weight\":\"bold\",\"slant\":\"italic\"}" ); +label.SetProperty( TextLabel::Property::FONT_STYLE, + Property::Map().Add( "weight", "bold" ) + .Add( "slant", "italic" ) ); label.SetProperty( TextLabel::Property::POINT_SIZE, 12.0f ); ~~~ @@ -62,7 +64,10 @@ label.SetProperty( TextLabel::Property::POINT_SIZE, 12.0f ); // JavaScript label.fontFamily = "FreeSerif"; -label.fontStyle = "{\"weight\":\"bold\",\"slant\":\"italic\"}"; +label.fontStyle = { + "weight" : "bold", + "slant" : "italic" + }; label.pointSize = 12; ~~~ @@ -92,7 +97,11 @@ To change the font for standard text controls, this JSON syntax can be used: "textlabel": { "fontFamily":"FreeSerif", - "fontStyle":"{\"weight\":\"bold\",\"slant\":\"italic\"}", + "fontStyle": + { + "weight":"bold", + "slant":"italic" + }, "pointSize":8 } } @@ -126,7 +135,11 @@ in the style sheet are applied after the base section ("textlabel"), so take pre "textlabel": { "fontFamily":"FreeSerif", - "fontStyle":"{\"weight\":\"bold\",\"slant\":\"italic\"}", + "fontStyle": + { + "weight":"bold", + "slant":"italic" + }, }, "textlabelFontSize0": @@ -153,7 +166,11 @@ in the style sheet are applied after the base section ("textlabel"), so take pre "customLabel": { "fontFamily":"TimesNewRoman", - "fontStyle":"{\"weight\":\"regular\",\"slant\":\"regular\"}", + "fontStyle": + { + "weight":"regular", + "slant":"regular" + }, }, "customLabelFontSize0": {