jetBrainsMono static method
TextStyle
jetBrainsMono({
- 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 JetBrains Mono font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle jetBrainsMono({
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(
'2d9c45ef613517fe16ef9b98e22bf42c9cde2e64c3b5dec28eccf19ef951214f',
100036,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'd8b7b6fd7549d056bacd72fc5a44509b6dd60e79e23ca39138266fef6eec1d99',
100112,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'8bbf6f151ea26ab4020ab3909444b7c480cd0bdd14f3c9bf990940802430a691',
100048,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'bcad6628b88dabe2c7128a8d8da7517d30d291d2196c242d6bd064803b6bc81b',
99952,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'72df06f080fd2a3a7de54b16f2f4fe430ea07ac88edb13547f226cf40fad1359',
99964,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'1c883998d81a7f0fc7d29b754d6d4c760f78c2c2754cd83d4be49deacfde3eea',
99920,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'62eedf885d199e8fd5996d76b7d0b957d51de06048b818877cb45dd5e6cc886a',
99860,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'5a90822ddce5280355142856207a3cdb8ceff10d064bad9984be6d4f9538ca54',
99880,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'17cd635d99cdf2bc587f7edfa12afb833fe73442f6c24bb75416096abf343c4c',
102952,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'082c46dba74facd18763c2f8b46464050249389890cc0525442bfe5b9dcb696f',
103036,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'8019ed5d2dbb8b331bbe43d8b629a7ba5e60ce45a97c73b9aaa909f92cd68a82',
102924,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'06f5559c182b0ee9933f08da76d9029034d0acf76dd368b61b0f804d5dffe847',
102740,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3b8cba00588c1b76e016aed0322ec1115b1911eb617aa0c3d8d964ba93172f33',
102848,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'ac952bea8f76559fa60e09cbf07cd2e30763530ee53b62399a6057ed8e503b2b',
102796,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'f5e1d2fb4b360d37a9a0dd3b54218280d0c71852e56d046d3a1ec88b61457eae',
102732,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'dcc9bc14c86097e41cd2ff409e2bfd72f92ab8c5a6e1d3f0f55ae8078b37c79f',
102808,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'JetBrainsMono',
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,
);
}