Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "font/Style"

Index

Type aliases

FontStyleBase

FontStyleBase: number | IStyles

The base that is used for the IFontStyleOptions. This means that the divisions can be either a number or a full style for the division.

example
import { FontStyle } from '@ef-carbon/react-native-style';
const fontStyle = new FontStyle({
  base: {
    300: {
      fontSize: 9,
      letterSpacing: 0,
      lineHeight: 16,
      fontWeight: 'bold',
      fontStyle: 'italic',
    },
    500: 16,
    700: 25,
  }
});

Variables

Const fontStyleLetterSpacing

fontStyleLetterSpacing: 0 = 0

The default letter spacing for the font style divisions

Const fontStyleLineHeight

fontStyleLineHeight: 1.6 = 1.6

The default line height for the font styles

Const fontStyleSlope

fontStyleSlope: "italic" = "italic"

The default slope of the font styles

Const letterSpacing

letterSpacing: 0 = fontStyleLetterSpacing

Const lineHeight

lineHeight: 1.6 = fontStyleLineHeight

Const slope

slope: "italic" = fontStyleSlope

Functions

convert