@expo-google-fonts/ysabeau-infant
v0.4.2
Published
Use the Ysabeau Infant font family from Google Fonts in your Expo app
Readme
@expo-google-fonts/ysabeau-infant
This package lets you use the Ysabeau Infant font family from Google Fonts in your Expo app.
Ysabeau Infant

This font family contains 18 styles.
YsabeauInfant_100ThinYsabeauInfant_200ExtraLightYsabeauInfant_300LightYsabeauInfant_400RegularYsabeauInfant_500MediumYsabeauInfant_600SemiBoldYsabeauInfant_700BoldYsabeauInfant_800ExtraBoldYsabeauInfant_900BlackYsabeauInfant_100Thin_ItalicYsabeauInfant_200ExtraLight_ItalicYsabeauInfant_300Light_ItalicYsabeauInfant_400Regular_ItalicYsabeauInfant_500Medium_ItalicYsabeauInfant_600SemiBold_ItalicYsabeauInfant_700Bold_ItalicYsabeauInfant_800ExtraBold_ItalicYsabeauInfant_900Black_Italic
Usage
Run this command from the shell in the root directory of your Expo project to add the font family package to your project
npx expo install @expo-google-fonts/ysabeau-infant expo-fontNow add code like this to your project
import { Text, View } from "react-native";
import { useFonts } from '@expo-google-fonts/ysabeau-infant/useFonts';
import { YsabeauInfant_100Thin } from '@expo-google-fonts/ysabeau-infant/100Thin';
import { YsabeauInfant_200ExtraLight } from '@expo-google-fonts/ysabeau-infant/200ExtraLight';
import { YsabeauInfant_300Light } from '@expo-google-fonts/ysabeau-infant/300Light';
import { YsabeauInfant_400Regular } from '@expo-google-fonts/ysabeau-infant/400Regular';
import { YsabeauInfant_500Medium } from '@expo-google-fonts/ysabeau-infant/500Medium';
import { YsabeauInfant_600SemiBold } from '@expo-google-fonts/ysabeau-infant/600SemiBold';
import { YsabeauInfant_700Bold } from '@expo-google-fonts/ysabeau-infant/700Bold';
import { YsabeauInfant_800ExtraBold } from '@expo-google-fonts/ysabeau-infant/800ExtraBold';
import { YsabeauInfant_900Black } from '@expo-google-fonts/ysabeau-infant/900Black';
import { YsabeauInfant_100Thin_Italic } from '@expo-google-fonts/ysabeau-infant/100Thin_Italic';
import { YsabeauInfant_200ExtraLight_Italic } from '@expo-google-fonts/ysabeau-infant/200ExtraLight_Italic';
import { YsabeauInfant_300Light_Italic } from '@expo-google-fonts/ysabeau-infant/300Light_Italic';
import { YsabeauInfant_400Regular_Italic } from '@expo-google-fonts/ysabeau-infant/400Regular_Italic';
import { YsabeauInfant_500Medium_Italic } from '@expo-google-fonts/ysabeau-infant/500Medium_Italic';
import { YsabeauInfant_600SemiBold_Italic } from '@expo-google-fonts/ysabeau-infant/600SemiBold_Italic';
import { YsabeauInfant_700Bold_Italic } from '@expo-google-fonts/ysabeau-infant/700Bold_Italic';
import { YsabeauInfant_800ExtraBold_Italic } from '@expo-google-fonts/ysabeau-infant/800ExtraBold_Italic';
import { YsabeauInfant_900Black_Italic } from '@expo-google-fonts/ysabeau-infant/900Black_Italic';
export default () => {
let [fontsLoaded] = useFonts({
YsabeauInfant_100Thin,
YsabeauInfant_200ExtraLight,
YsabeauInfant_300Light,
YsabeauInfant_400Regular,
YsabeauInfant_500Medium,
YsabeauInfant_600SemiBold,
YsabeauInfant_700Bold,
YsabeauInfant_800ExtraBold,
YsabeauInfant_900Black,
YsabeauInfant_100Thin_Italic,
YsabeauInfant_200ExtraLight_Italic,
YsabeauInfant_300Light_Italic,
YsabeauInfant_400Regular_Italic,
YsabeauInfant_500Medium_Italic,
YsabeauInfant_600SemiBold_Italic,
YsabeauInfant_700Bold_Italic,
YsabeauInfant_800ExtraBold_Italic,
YsabeauInfant_900Black_Italic
});
let fontSize = 24;
let paddingVertical = 6;
if (!fontsLoaded) {
return null;
} else {
return (
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_100Thin"
}}>
Ysabeau Infant Thin
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_200ExtraLight"
}}>
Ysabeau Infant Extra Light
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_300Light"
}}>
Ysabeau Infant Light
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_400Regular"
}}>
Ysabeau Infant Regular
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_500Medium"
}}>
Ysabeau Infant Medium
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_600SemiBold"
}}>
Ysabeau Infant Semi Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_700Bold"
}}>
Ysabeau Infant Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_800ExtraBold"
}}>
Ysabeau Infant Extra Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_900Black"
}}>
Ysabeau Infant Black
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_100Thin_Italic"
}}>
Ysabeau Infant Thin Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_200ExtraLight_Italic"
}}>
Ysabeau Infant Extra Light Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_300Light_Italic"
}}>
Ysabeau Infant Light Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_400Regular_Italic"
}}>
Ysabeau Infant Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_500Medium_Italic"
}}>
Ysabeau Infant Medium Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_600SemiBold_Italic"
}}>
Ysabeau Infant Semi Bold Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_700Bold_Italic"
}}>
Ysabeau Infant Bold Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_800ExtraBold_Italic"
}}>
Ysabeau Infant Extra Bold Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "YsabeauInfant_900Black_Italic"
}}>
Ysabeau Infant Black Italic
</Text>
</View>
);
}
};🔡 Gallery
||||
|-|-|-|
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
👩💻 Use During Development
If you are trying out lots of different fonts, you can try using the @expo-google-fonts/dev package.
You can import any font style from any Expo Google Fonts package from it. It will load the fonts over the network at runtime instead of adding the asset as a file to your project, so it may take longer for your app to get to interactivity at startup, but it is extremely convenient for playing around with any style that you want.
📖 License
The @expo-google-fonts/ysabeau-infant package and its code are released under the MIT license.
All the fonts in the Google Fonts catalog are free and open source.
Check the Ysabeau Infant page on Google Fonts for the specific license of this font family.
You can use these fonts freely in your products & projects - print or digital, commercial or otherwise. However, you can't sell the fonts on their own. This isn't legal advice, please consider consulting a lawyer and see the full license for all details.
🔗 Links
- Ysabeau Infant on Google Fonts
- Google Fonts
- This package on npm
- This package on GitHub
- The Expo Google Fonts project on GitHub
@expo-google-fonts/devDevlopment Package
🤝 Contributing
Contributions are very welcome! This entire directory, including what you are reading now, was generated from code. Instead of submitting PRs to this directly, please make contributions to the generator instead.
