Legytma Schemas

Text Style Schema

https://legytma.com.br/schema/text_style.schema.json

Identify the widget type

Used to identify parser. Every parser can permit only one type

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Allowed none text_style.schema.json

Text Style Type

object (Text Style)

Text Style Properties

Property Type Required Nullable Defined by
color Merged Optional cannot be null Text Style
debugLabel string Optional cannot be null Text Style
decoration string Optional cannot be null Text Style
fontSize Merged Optional cannot be null Text Style
fontFamily string Optional cannot be null Text Style
fontStyle string Optional cannot be null Text Style
fontWeight string Optional cannot be null Text Style
backgroundColor Merged Optional cannot be null Text Style
background Unknown Type Optional can be null Text Style
decorationColor Merged Optional cannot be null Text Style
decorationStyle string Optional cannot be null Text Style
decorationThickness Merged Optional cannot be null Text Style
fontFamilyFallback array Optional cannot be null Text Style
fontFeatures array Optional cannot be null Text Style
foreground Unknown Type Optional can be null Text Style
height Merged Optional cannot be null Text Style
inherit boolean Optional cannot be null Text Style
letterSpacing Merged Optional cannot be null Text Style
locale object Optional cannot be null Text Style
package string Optional cannot be null Text Style
shadows array Optional cannot be null Text Style
textBaseline string Optional cannot be null Text Style
wordSpacing Merged Optional cannot be null Text Style

color

A number in format string or integer

Used to identify parser. Every parser can permit only one type

color

color Type

merged type (Color)

all of

color Default Value

The default value is:

"0xFF000000"

color Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

debugLabel

Used to identify during debug

Used to identify parser. Every parser can permit only one type

debugLabel

debugLabel Type

string (Debug Label)

decoration

Determine the text decoration

Used to identify parser. Every parser can permit only one type

decoration

decoration Type

string (Text Decoration)

decoration Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"lineThrough"  
"overline"  
"underline"  
"none"  

decoration Examples

"lineThrough"
"overline"
"underline"
"none"

fontSize

Define the representation of double acceptable.

Used to identify parser. Every parser can permit only one type

fontSize

fontSize Type

merged type (Double)

one (and only one) of

fontSize Constraints

maximum: the value of this number must smaller than or equal to: 1

minimum: the value of this number must greater than or equal to: 0

fontSize Default Value

The default value is:

1

fontFamily

Font family

Used to identify parser. Every parser can permit only one type

fontFamily

fontFamily Type

string (Font Family)

fontStyle

Created by Windol [email protected] at 27/04/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

fontStyle

fontStyle Type

string (Font Style)

fontStyle Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"italic"  
"normal"  

fontStyle Examples

"italic"
"normal"

fontWeight

Define the font weight

Used to identify parser. Every parser can permit only one type

fontWeight

fontWeight Type

string (Font Weight)

fontWeight Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"w100"  
"w200"  
"w300"  
"normal"  
"w400"  
"w500"  
"w600"  
"bold"  
"w700"  
"w800"  
"w900"  

fontWeight Examples

"w100"
"w200"
"w300"
"normal"
"w400"
"w500"
"w600"
"bold"
"w700"
"w800"
"w900"

backgroundColor

A number in format string or integer

Used to identify parser. Every parser can permit only one type

backgroundColor

backgroundColor Type

merged type (Color)

all of

backgroundColor Default Value

The default value is:

"0xFF000000"

backgroundColor Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

background

Created by Windol [email protected] at 15/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

background

background Type

any of the folllowing: array or boolean or integer or number or object or string (Dynamic)

decorationColor

A number in format string or integer

Used to identify parser. Every parser can permit only one type

decorationColor

decorationColor Type

merged type (Color)

all of

decorationColor Default Value

The default value is:

"0xFF000000"

decorationColor Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

decorationStyle

Text decoration style

Used to identify parser. Every parser can permit only one type

decorationStyle

decorationStyle Type

string (Text Decoration Style)

decorationStyle Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"dashed"  
"dotted"  
"double"  
"solid"  
"wavy"  

decorationStyle Examples

"dashed"
"dotted"
"double"
"solid"
"wavy"

decorationThickness

Define the representation of double acceptable.

Used to identify parser. Every parser can permit only one type

decorationThickness

decorationThickness Type

merged type (Double)

one (and only one) of

decorationThickness Constraints

maximum: the value of this number must smaller than or equal to: 1

minimum: the value of this number must greater than or equal to: 0

decorationThickness Default Value

The default value is:

1

fontFamilyFallback

List of font family

Used to identify parser. Every parser can permit only one type

fontFamilyFallback

fontFamilyFallback Type

string[] (Font Family)

fontFeatures

Font features list

Used to identify parser. Every parser can permit only one type

fontFeatures

fontFeatures Type

unknown[] (Font Feature)

foreground

Created by Windol [email protected] at 15/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

foreground

foreground Type

any of the folllowing: array or boolean or integer or number or object or string (Dynamic)

height

Define the representation of double acceptable.

Used to identify parser. Every parser can permit only one type

height

height Type

merged type (Double)

one (and only one) of

height Constraints

maximum: the value of this number must smaller than or equal to: 1

minimum: the value of this number must greater than or equal to: 0

height Default Value

The default value is:

1

inherit

Define the representation of boolean acceptable.

Used to identify parser. Every parser can permit only one type

inherit

inherit Type

boolean (Boolean)

inherit Default Value

The default value is:

true

inherit Examples

true
false

letterSpacing

Define the representation of double acceptable.

Used to identify parser. Every parser can permit only one type

letterSpacing

letterSpacing Type

merged type (Double)

one (and only one) of

letterSpacing Constraints

maximum: the value of this number must smaller than or equal to: 1

minimum: the value of this number must greater than or equal to: 0

letterSpacing Default Value

The default value is:

1

locale

Locale.

This parser is not implemented, must be assigned using registerLogic

locale

locale Type

object (Locale)

package

package

package Type

string (Package)

shadows

Shadow list

Used to identify parser. Every parser can permit only one type

shadows

shadows Type

unknown[] (Shadow)

textBaseline

Created by Windol [email protected] at 01/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

textBaseline

textBaseline Type

string (Text Baseline)

textBaseline Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"alphabetic"  
"ideographic"  

wordSpacing

Define the representation of double acceptable.

Used to identify parser. Every parser can permit only one type

wordSpacing

wordSpacing Type

merged type (Double)

one (and only one) of

wordSpacing Constraints

maximum: the value of this number must smaller than or equal to: 1

minimum: the value of this number must greater than or equal to: 0

wordSpacing Default Value

The default value is:

1