ebGaramond static method
TextStyle
ebGaramond({
- 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 EB Garamond font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle ebGaramond({
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.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a42e866a2fa802773a7f2d54c4824b34b6e429a8cfe4d66e36132b90c1d84a86',
448404,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'51ad066655b9874b8ec5f3cde36000524825a851d38969f3504b5b8ffa47a32b',
450680,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'cf289cbf788868de9c6a9321eabe1144f01fa9d05d32528404320cdea007af65',
450940,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c037df98be8a267456861a2c0d5f9e99bef5061ebe5c108907554dd53eb7262f',
450624,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'ee315d7cc0f2a300ca441865f058c4e4209300126b8cfc080ae3f8aad365dd9e',
450280,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'a55898ed3c0646cb08dda0386f9db62e900ba57f2fe4f8263dce2ec35b05dd72',
378292,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'49dede0fd09978191b325840639fa068018bb047657e7df9a9c1c42bfad62516',
380704,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'083f0da5d403c6e023e059e396b48c55f85d1d67511495f9e9416a54c0f34512',
381316,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'898d6dc365011be3fe3ce4c69dc6ccc8d492a14c603b22b9e97971d1bc473f2a',
381124,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'c1c988ee86a5d3e08df41d8084713f24c8109abb90ad70c45b08396c2f0c7a79',
380412,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'EBGaramond',
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,
);
}