josefinSlab static method
TextStyle
josefinSlab(
- {TextStyle? textStyle,
- Color? color,
- Color? backgroundColor,
- double? fontSize,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- double? letterSpacing,
- double? wordSpacing,
- TextBaseline? textBaseline,
- double? height,
- Locale? locale,
- Paint? foreground,
- Paint? background,
- List<
Shadow> ? shadows, - List<
FontFeature> ? fontFeatures, - TextDecoration? decoration,
- Color? decorationColor,
- TextDecorationStyle? decorationStyle,
- double? decorationThickness}
Applies the Josefin Slab font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle josefinSlab({
TextStyle? textStyle,
Color? color,
Color? backgroundColor,
double? fontSize,
FontWeight? fontWeight,
FontStyle? fontStyle,
double? letterSpacing,
double? wordSpacing,
TextBaseline? textBaseline,
double? height,
Locale? locale,
Paint? foreground,
Paint? background,
List<ui.Shadow>? shadows,
List<ui.FontFeature>? fontFeatures,
TextDecoration? decoration,
Color? decorationColor,
TextDecorationStyle? decorationStyle,
double? decorationThickness,
}) {
final fonts = <GoogleFontsVariant, GoogleFontsFile>{
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'447b30a4f09ce882924bc14b5cb2d46ed8a09e31fbd138c82200fce2411f2612',
20404,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'9e521fdac6770840a2382fe98c7220bc471558f801d8965edf8573e7f30b69b5',
21704,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'ed15a28fd4c2b8d4813431c543e1e1d9293d3054ccc2ba5ef342f99ce5a44c08',
20896,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'5e1991a7b37703dc6b6e746ddc357b7310c82534d6438bdb6f7ae3748790800e',
22096,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a95bda8e2687087242a1a437c00ed9c693590a2280a21d2a4734a3ad6dfce08b',
20448,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'61d7f09bf0f42191d6840eb606f9898b7faf7fe6493a630405fe91aac97327f4',
21468,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'1a3215f9937cb8a3b66779e1b69158645771177c7433046a9d0929ddc30e126e',
20744,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'efaff26fee494b1b09da8456684d5c03d3bb898803d186aa6a88154f10bfdfee',
22096,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'00f4364ef7f981110c8e894aa31ef2195629999eeb5bc8689c21745ec03cf534',
19936,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'999b995ee79a2865d9ed663bd3b3d65fcd10a6c15198afb228ca225b210eac8c',
21064,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'JosefinSlab',
color: color,
backgroundColor: backgroundColor,
fontSize: fontSize,
fontWeight: fontWeight,
fontStyle: fontStyle,
letterSpacing: letterSpacing,
wordSpacing: wordSpacing,
textBaseline: textBaseline,
height: height,
locale: locale,
foreground: foreground,
background: background,
shadows: shadows,
fontFeatures: fontFeatures,
decoration: decoration,
decorationColor: decorationColor,
decorationStyle: decorationStyle,
decorationThickness: decorationThickness,
fonts: fonts,
);
}