X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=docs%2Fcontent%2Fshared-javascript-and-cpp-documentation%2Ffont-selection.md;h=c8f46da65201130ec9f6932578a84886e851cfe8;hb=3c33de90842271fcc3808f2d9bd0cdfd54494bba;hp=348bf1bf66ba89732e9befb972282c0e5121fdc6;hpb=5c07fde9dd6a022e2080c871994499e56eff89aa;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 348bf1b..c8f46da 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/font-selection.md +++ b/docs/content/shared-javascript-and-cpp-documentation/font-selection.md @@ -14,34 +14,34 @@ Alternatively a font may be requested using either or all of FONT_FAMILY, FONT_S - FONT_STYLE Is a json formatted string with the font's style. Possible *key, value* pairs are: + *width* Modifies the space between glyphs. Possible values are: - - *ultra-condensed* - - *extra-condensed* + - *ultraCondensed* + - *extraCondensed* - *condensed* - - *semi-condensed* + - *semiCondensed* - *normal* - - *semi-expanded* + - *semiExpanded* - *expanded* - - *extra-expanded* - - *ultra-expanded* + - *extraExpanded* + - *ultraExpanded* + *weight* Modifies the thickness or darkness of the glyphs. Possible values are: - *thin* - - *ultra-light* - - *extra-light* + - *ultraLight* + - *extraLight* - *light* - - *demi-light* - - *semi-light* + - *demiLight* + - *semiLight* - *book* - *normal* - *regular* - *medium* - - *demi-bold* - - *semi-bold* + - *demiBold* + - *semiBold* - *bold* - - *ultra-bold* - - *extra-bold* + - *ultraBold* + - *extraBold* - *black* - *heavy* - - *extra-black* + - *extraBlack* + *slant* Whether to use italics. Usually *italic* is a different font whilst the *oblique* has been generated by slanting the *normal* one. Possible values are: - *normal* - *roman* Same as *normal* @@ -87,15 +87,15 @@ To change the font for standard text controls, this JSON syntax can be used: { "textlabel": { - "font-family":"FreeSerif", - "font-style":"{\"weight\":\"bold\",\"slant\":\"italic\"}", - "point-size":8 + "fontFamily":"FreeSerif", + "fontStyle":"{\"weight\":\"bold\",\"slant\":\"italic\"}", + "pointSize":8 } } } ~~~ -However the same point-size is unlikely to be suitable for all text controls in an application. +However the same pointSize is unlikely to be suitable for all text controls in an application. To set custom sizes simply set a "style name" for each case, and then provide a style override in JSON: ~~~{.cpp} @@ -115,19 +115,19 @@ To set custom sizes simply set a "style name" for each case, and then provide a { "textlabel": { - "font-family":"FreeSerif", - "font-style":"{\"weight\":\"bold\",\"slant\":\"italic\"}", - "point-size":8 + "fontFamily":"FreeSerif", + "fontStyle":"{\"weight\":\"bold\",\"slant\":\"italic\"}", + "pointSize":8 }, "custom": { - "point-size":10 + "pointSize":10 } } } ~~~ -In the example above, standard text labels will have point-size 8, and "custom" labels will have point-size 10. +In the example above, standard text labels will have pointSize 8, and "custom" labels will have pointSize 10. */