FontSize

Since: BlackBerry 10.0.0

#include <bb/cascades/FontSize>

Represents the types of font sizes for a TextStyle.

This enumeration represents logical font sizes that will be translated to actual sizes according to the font size set in the device's accessibility settings.


Overview

Public Types Index

enum Type

Default = 0, PointValue = 1, PercentageValue = 2, XXSmall = 70, XSmall = 80, Small = 90, Medium = 100, Large = 110, XLarge = 120, XXLarge = 130

Public Types

Type

Types of font sizes.

Since:

BlackBerry 10.0.0

Default = 0

The default font size.

PointValue = 1

Indicates that an exact font size defined in post script points (which is independent of global font settings) should be used instead of a logical size.

This setting must be used in combination with the fontSizeValue property on the TextStyle.

Since:

BlackBerry 10.0.0

PercentageValue = 2

Indicates that a percentage of the parent style element's size should be used.

This setting must be used in combination with the fontSizeValue property on the TextStyle. If there is no parent element, the size will be in relation to the system default size, which typically matches the logical size of Medium.

Since:

BlackBerry 10.0.0

XXSmall = 70

An extra, extra small font size.

This size is often used for large blocks of text and is roughly equivalent to an actual size of 5pt.

Since:

BlackBerry 10.0.0

XSmall = 80

An extra small font size.

This size is often used for subtitles and is roughly equivalent to an actual size of 6pt.

Since:

BlackBerry 10.0.0

Small = 90

A small font size.

This size is often used for small blocks of text and is roughly equivalent to an actual size of 7pt.

Since:

BlackBerry 10.0.0

Medium = 100

A medium font size.

This size is often used for body text and is roughly equivalent to an actual size of 8pt.

Since:

BlackBerry 10.0.0

Large = 110

A large font size.

This size is often used for small headings and titles, and is roughly equivalent to an actual size of 9pt.

Since:

BlackBerry 10.0.0

XLarge = 120

An extra large font size.

This size is often used for headings and is roughly equivalent to an actual size of 11pt.

Since:

BlackBerry 10.0.0

XXLarge = 130

An extra, extra large font size.

This size is often used for large headings and is roughly equivalent to an actual size of 13pt.

Since:

BlackBerry 10.0.0

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus