josefinSans static method
TextStyle
josefinSans({
- 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 Sans font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle josefinSans({
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(
'7ff1549b62733a7a56e4741b0317436a1e4a65f5a26665f4e91be15e5baa23ca',
57624,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'4b79c43689033bfdb3c1f0d3c909f40dbf93811a4e9988ab62f3351c256f32e5',
57792,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'44791d5fd1546e2f71cefed0d3cb8298543eceb36b2922fd377a2026053594a0',
57812,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'5a97e89defaf6349a389637873e9097d392edca2910396fca6f5f44eafa9eef4',
57792,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'cbf85f693512cf714fc2084c7a63005fc43d072e393604e6fcbafdc200f054f4',
57832,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a36d4815d81612d6144b27625637718a6d24be42ac793b3a313ed76f7597c237',
57828,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'b47b2ec9ae45941629391f6e8387a4cd26ed822a6b7992d32ecc5f600295b6a6',
57660,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'769934c32506cbe20df0b51f93f983d4aa60b9efec681d0c0552ef3c7194532f',
61840,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'fe87ef82c71aebbe2c41006926e157140e2ec2b48db9e723bb867ac6a41468c5',
62092,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'0d5a1e3421e8b8689e65a0397df3436a4c6af55002adb5b8609c33d736c23ff7',
62052,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'1ae0631ccb755b6093b5d4da1ab35c4787b2e850e19682bddf678b1bec615f22',
62052,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'c03cc911fcd78852f7ff568a8c55ca77950b0329771cd5b92554f7108f184860',
62204,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'dedb1d5f2019b445a6a9c47fa2048f522ccc9057f0639412fb63c5d128828189',
62216,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'c3ede1706f6382ece4b41b2f85d8d946f50c8be15dd1efb9d0a8d1730a19e55f',
61964,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'JosefinSans',
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,
);
}