qnx.fuse.ui.text.TextFormatStyle

TextFormatStyle

Constants


Packageqnx.fuse.ui.text
Classpublic class TextFormatStyle
InheritanceTextFormatStyle Inheritance Object

TextFormatStyle contains constants to be set on the TextFormat.style property. They indicate what size text should be without explicitly specifying a point size.

It is preferable to use a TextFormatStyle over setting the font size explicitly, as text sized with TextFormatStyle respect the users system font size preferences



Class information:
BlackBerry 10 Version:   10.0.0

See also

TextFormat.style



Public Constants

 ConstantDefined By
  CONTENT : String = content
[static] Specifies that the TextFormat.size property is set to content size.
TextFormatStyle
  LARGE : String = large
[static] Specifies that the TextFormat.size property is set to a large size.
TextFormatStyle
  MEDIUM : String = medium
[static] Specifies that the TextFormat.size property is set to a medium size.
TextFormatStyle
  NONE : String = none
[static] Specifies that the TextFormat.style property should be ignored.
TextFormatStyle
  SECONDARY : String = secondary
[static] Specifies that the TextFormat.size property is set to secondary size.
TextFormatStyle
  SMALL : String = small
[static] Specifies that the TextFormat.size property is set to small size.
TextFormatStyle
  TITLE : String = title
[static] Specifies that the TextFormat.size property should be set to the title size.
TextFormatStyle
  XLARGE : String = xlarge
[static] Specifies that the TextFormat.size property should be set to the extra large size.
TextFormatStyle
  XSMALL : String = xsmall
[static] Specifies that the TextFormat.size property is set to the extra small size.
TextFormatStyle
  XXLARGE : String = xxlarge
[static] Specifies that the TextFormat.size property should be set to the extra extra large size.
TextFormatStyle
  XXSMALL : String = xxsmall
[static] Specifies that the TextFormat.size property is set to the extra extra small size.
TextFormatStyle

Constant Detail

CONTENT


public static const CONTENT:String = content

Specifies that the TextFormat.size property is set to content size. This is the default text size. This is identical to the TextFormatStyle.MEDIUM size.

The following equation is used to determine the point size used for content text: systemPointSize

See also

TextFormat.style
TextFormat.size

LARGE


public static const LARGE:String = large

Specifies that the TextFormat.size property is set to a large size.

The following equation is used to determine the point size used for large text: constrain( 1.22 systemPointSize, 6, 21.6 );

See also

TextFormat.style
TextFormat.size

MEDIUM


public static const MEDIUM:String = medium

Specifies that the TextFormat.size property is set to a medium size.

The following equation is used to determine the point size used for medium text: systemPointSize

See also

TextFormat.style
TextFormat.size

NONE


public static const NONE:String = none

Specifies that the TextFormat.style property should be ignored.

See also

TextFormat.style
TextFormat.size

SECONDARY


public static const SECONDARY:String = secondary

Specifies that the TextFormat.size property is set to secondary size. This is identical to the TextFormatStyle.SMALL size.

The following equation is used to determine the point size used for secondary text: constrain( 0.8888888 systemPointSize, 4.44, 16 );

See also

TextFormat.style
TextFormat.size

SMALL


public static const SMALL:String = small

Specifies that the TextFormat.size property is set to small size.

The following equation is used to determine the point size used for medium text: constrain( 0.8888888 systemPointSize, 4.44, 16 );

See also

TextFormat.style
TextFormat.size

TITLE


public static const TITLE:String = title

Specifies that the TextFormat.size property should be set to the title size. This is identical to the TextFormatStyle.LARGE size.

The following equation is used to determine the point size used for title text: constrain( 1.22 systemPointSize, 6, 21.6 );

See also

TextFormat.style
TextFormat.size

XLARGE


public static const XLARGE:String = xlarge

Specifies that the TextFormat.size property should be set to the extra large size.

The following equation is used to determine the point size used for extra large text: constrain( 1.5 systemPointSize, 7.5, 27 );

See also

TextFormat.style
TextFormat.size

XSMALL


public static const XSMALL:String = xsmall

Specifies that the TextFormat.size property is set to the extra small size.

The following equation is used to determine the point size used for extra small text: constrain( 0.75 systemPointSize, 3.75, 13.5 );

See also

TextFormat.style
TextFormat.size

XXLARGE


public static const XXLARGE:String = xxlarge

Specifies that the TextFormat.size property should be set to the extra extra large size. XXLarge is the biggest TextFormatStyle avaliable.

The following equation is used to determine the point size used for extra extra large text: constrain( 2 systemPointSize, 10, 36 );

See also

TextFormat.style
TextFormat.size

XXSMALL


public static const XXSMALL:String = xxsmall

Specifies that the TextFormat.size property is set to the extra extra small size. This is the smallest TextFormatStyle avaliable.

The following equation is used to determine the point size used for extra extra small text: constrain( 0.6 systemPointSize, 3, 10.8 )

See also

TextFormat.style
TextFormat.size





comments powered by Disqus