notoSerifDisplay static method

TextStyle notoSerifDisplay({
  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 Noto Serif Display font family from Google Fonts to the given textStyle.

See:

Implementation

static TextStyle notoSerifDisplay({
  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(
      'd1b7a7784ae92e64e397f0d0151519c3895babd82b74febefbea53a5fd4816ad',
      398684,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '42f4e3c3cdc152ad68ebb96b21122563d6a7f569c9c7495ddf4f184fc8271eb5',
      399176,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '9eb794056cd6cd31a996a1e8589f164036c3ae042705d4ddb5d0361a5d0aa449',
      399280,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '7055b1584b844c9e2b37420aff470ef17f537fa332dcaa3238c85945f20150a6',
      397820,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '8f4e10048f88c89f2f92bf98fd42af875b73db9ae755c58bf4e100eb10c9e86a',
      399220,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1c1c3c3676027d8965fc5c689207b6d764ba0d07c6a914857ac96b4fbc168358',
      398772,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '4f34fc66c3dd8aaf37b19e996cd10b17438a7bccedbdc3ec5e87300dbb7dde64',
      397908,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '3f79ad3d60153bfafe046db93453c23c28a817bd494e700443ed9928aa78e3ad',
      399904,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '97c432cf121c9b80ae01a7db653aedd1e46dc27e0f69b6d95905f7156dfec48d',
      400036,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '678e94d4778dc9407d6d7d833d0d2fbe29ed2d7837f14bb50fb7a8ee5f0f043f',
      417200,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '9700b058f983323a301697ffc7eb9214c45c068679d56fdd53246e2194b57b19',
      417796,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '6ae38b096df2cacaf77e110bea4efd383c6b0e41c4bc4fb48ce8fa3288f9d7eb',
      417840,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '9943a785e532756943ebe2234ee924073de5cde41ada3b426921234d68fdced1',
      416604,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'ff38dcfbb7df9c9e7d04326b38e23bd48e82796ccf64c427e3db743275ae9dcc',
      417508,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '43117d0997228841425d99d03d7e950d1d7579f96e5fab625316bba93b6474dc',
      417796,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'fd365b742dec40d2d261c5aa66341b126c8ec04d971abe3282fd8407ecb3a57d',
      417120,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '39eb3387b422c8a53a0bad0f4f4980fd66bb20405b7ef2f319f4af48d2fe101c',
      418248,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '957b03e499277bd787513791c2e371aade3c0d92a880ae778891aa0efc746d88',
      418056,
    ),
  };

  return googleFontsTextStyle(
    textStyle: textStyle,
    fontFamily: 'NotoSerifDisplay',
    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,
  );
}