josefinSlab static method

TextStyle josefinSlab({
  1. TextStyle? textStyle,
  2. Color? color,
  3. Color? backgroundColor,
  4. double? fontSize,
  5. FontWeight? fontWeight,
  6. FontStyle? fontStyle,
  7. double? letterSpacing,
  8. double? wordSpacing,
  9. TextBaseline? textBaseline,
  10. double? height,
  11. Locale? locale,
  12. Paint? foreground,
  13. Paint? background,
  14. List<Shadow>? shadows,
  15. List<FontFeature>? fontFeatures,
  16. TextDecoration? decoration,
  17. Color? decorationColor,
  18. TextDecorationStyle? decorationStyle,
  19. 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(
      '7471493883afd961ff0caedb86724252f1779c2964827df4f3a1ba0ee8d971ed',
      21768,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e4178bc011fdcb68ca153bfab4fa5939df22b4c5e507b9400411ebcefeb92a35',
      21816,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '24203d92d17bd6aed8883188552859e2a0ee3109bae34df40027b20a67e1970b',
      21812,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1d14118b635931ff8c7b49188dfc1c0c5295a03bb98bcd5cc5945ca68ac586c3',
      21784,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1e60d8d808bfd049dbaf915ee1231afafd051ecadaf66b725a40f5dec18d1b91',
      21788,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '5908468d9983ce1791e4af893d33ed67ed0663293ef974e79a8bc7ba1a543af6',
      21816,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '30aece6438e289d68c9f1a44c3daa89ef46f98dc5344a0bdf5d47f13e508305b',
      21684,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '80a955eb3a91f9085ccce4b8f9b2432c535d818d19e34f06458e4c4d0552c9f2',
      23560,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '6a546406865ccea3764a3e0f9aeb0feb6567ff5682a63b298a7671e3445498e0',
      23612,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '32f30019b0d0032af9ea81d8c436172415e77a291022fb2177b57c08fc35464d',
      23612,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '9df713a05c0c60ac5ffc9732034b6f9e2fa97feff2bca627e0795e1ab161a1eb',
      23504,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'e3b105a003e345ad18b2fc48b56fba411d2cd699c614b5085a01f056d0f62fdd',
      23568,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '55bbba181d6e75e4625ced21795ad152a096580f7f042c5c67798b6c3a6bd196',
      23608,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '0b417ba3d5b433acfe355cdca58f352ee80c6795027db7e8542be3a787f7674d',
      23448,
    ),
  };

  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,
  );
}