@expo-google-fonts/bodoni-moda-sc
v0.4.1
Published
Use the Bodoni Moda SC font family from Google Fonts in your Expo app
Downloads
21
Readme
@expo-google-fonts/bodoni-moda-sc
This package lets you use the Bodoni Moda SC font family from Google Fonts in your Expo app.
Bodoni Moda SC

This font family contains 12 styles.
BodoniModaSC_400RegularBodoniModaSC_500MediumBodoniModaSC_600SemiBoldBodoniModaSC_700BoldBodoniModaSC_800ExtraBoldBodoniModaSC_900BlackBodoniModaSC_400Regular_ItalicBodoniModaSC_500Medium_ItalicBodoniModaSC_600SemiBold_ItalicBodoniModaSC_700Bold_ItalicBodoniModaSC_800ExtraBold_ItalicBodoniModaSC_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/bodoni-moda-sc expo-fontNow add code like this to your project
import { Text, View } from "react-native";
import { useFonts } from '@expo-google-fonts/bodoni-moda-sc/useFonts';
import { BodoniModaSC_400Regular } from '@expo-google-fonts/bodoni-moda-sc/400Regular';
import { BodoniModaSC_500Medium } from '@expo-google-fonts/bodoni-moda-sc/500Medium';
import { BodoniModaSC_600SemiBold } from '@expo-google-fonts/bodoni-moda-sc/600SemiBold';
import { BodoniModaSC_700Bold } from '@expo-google-fonts/bodoni-moda-sc/700Bold';
import { BodoniModaSC_800ExtraBold } from '@expo-google-fonts/bodoni-moda-sc/800ExtraBold';
import { BodoniModaSC_900Black } from '@expo-google-fonts/bodoni-moda-sc/900Black';
import { BodoniModaSC_400Regular_Italic } from '@expo-google-fonts/bodoni-moda-sc/400Regular_Italic';
import { BodoniModaSC_500Medium_Italic } from '@expo-google-fonts/bodoni-moda-sc/500Medium_Italic';
import { BodoniModaSC_600SemiBold_Italic } from '@expo-google-fonts/bodoni-moda-sc/600SemiBold_Italic';
import { BodoniModaSC_700Bold_Italic } from '@expo-google-fonts/bodoni-moda-sc/700Bold_Italic';
import { BodoniModaSC_800ExtraBold_Italic } from '@expo-google-fonts/bodoni-moda-sc/800ExtraBold_Italic';
import { BodoniModaSC_900Black_Italic } from '@expo-google-fonts/bodoni-moda-sc/900Black_Italic';
export default () => {
let [fontsLoaded] = useFonts({
BodoniModaSC_400Regular,
BodoniModaSC_500Medium,
BodoniModaSC_600SemiBold,
BodoniModaSC_700Bold,
BodoniModaSC_800ExtraBold,
BodoniModaSC_900Black,
BodoniModaSC_400Regular_Italic,
BodoniModaSC_500Medium_Italic,
BodoniModaSC_600SemiBold_Italic,
BodoniModaSC_700Bold_Italic,
BodoniModaSC_800ExtraBold_Italic,
BodoniModaSC_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: "BodoniModaSC_400Regular"
}}>
Bodoni Moda SC Regular
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_500Medium"
}}>
Bodoni Moda SC Medium
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_600SemiBold"
}}>
Bodoni Moda SC Semi Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_700Bold"
}}>
Bodoni Moda SC Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_800ExtraBold"
}}>
Bodoni Moda SC Extra Bold
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_900Black"
}}>
Bodoni Moda SC Black
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_400Regular_Italic"
}}>
Bodoni Moda SC Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_500Medium_Italic"
}}>
Bodoni Moda SC Medium Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_600SemiBold_Italic"
}}>
Bodoni Moda SC Semi Bold Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_700Bold_Italic"
}}>
Bodoni Moda SC Bold Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_800ExtraBold_Italic"
}}>
Bodoni Moda SC Extra Bold Italic
</Text>
<Text style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily: "BodoniModaSC_900Black_Italic"
}}>
Bodoni Moda SC 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/bodoni-moda-sc 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 Bodoni Moda SC 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
- Bodoni Moda SC 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.
