expo-google-fonts-manuale
v0.3.0
Published
Use the Manuale font family from Google Fonts in your Expo app
Readme
expo-google-fonts-manuale
This package lets you use the Manuale font family from Google Fonts in your Expo app.
Manuale

This font family contains 12 styles.
Manuale_300LightManuale_400RegularManuale_500MediumManuale_600SemiBoldManuale_700BoldManuale_800ExtraBoldManuale_300Light_ItalicManuale_400Regular_ItalicManuale_500Medium_ItalicManuale_600SemiBold_ItalicManuale_700Bold_ItalicManuale_800ExtraBold_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
expo install expo-google-fonts-manuale expo-fontNow add code like this to your project
import React from 'react';
import {
Text,
View,
} from 'react-native';
import { useFonts } from 'expo-google-fonts-manuale/useFonts';
import { Manuale_300Light } from 'expo-google-fonts-manuale/300Light';
import { Manuale_400Regular } from 'expo-google-fonts-manuale/400Regular';
import { Manuale_500Medium } from 'expo-google-fonts-manuale/500Medium';
import { Manuale_600SemiBold } from 'expo-google-fonts-manuale/600SemiBold';
import { Manuale_700Bold } from 'expo-google-fonts-manuale/700Bold';
import { Manuale_800ExtraBold } from 'expo-google-fonts-manuale/800ExtraBold';
import { Manuale_300Light_Italic } from 'expo-google-fonts-manuale/300Light_Italic';
import { Manuale_400Regular_Italic } from 'expo-google-fonts-manuale/400Regular_Italic';
import { Manuale_500Medium_Italic } from 'expo-google-fonts-manuale/500Medium_Italic';
import { Manuale_600SemiBold_Italic } from 'expo-google-fonts-manuale/600SemiBold_Italic';
import { Manuale_700Bold_Italic } from 'expo-google-fonts-manuale/700Bold_Italic';
import { Manuale_800ExtraBold_Italic } from 'expo-google-fonts-manuale/800ExtraBold_Italic';
export default () => {
let [fontsLoaded] = useFonts({
Manuale_300Light,
Manuale_400Regular,
Manuale_500Medium,
Manuale_600SemiBold,
Manuale_700Bold,
Manuale_800ExtraBold,
Manuale_300Light_Italic,
Manuale_400Regular_Italic,
Manuale_500Medium_Italic,
Manuale_600SemiBold_Italic,
Manuale_700Bold_Italic,
Manuale_800ExtraBold_Italic,
});
let fontSize = 24;
let paddingVertical = 6;
if (!fontsLoaded) {
return undefined;
} 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:
'Manuale_300Light',
}}>
Manuale Light
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_400Regular',
}}>
Manuale Regular
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_500Medium',
}}>
Manuale Medium
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_600SemiBold',
}}>
Manuale Semi Bold
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_700Bold',
}}>
Manuale Bold
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_800ExtraBold',
}}>
Manuale Extra Bold
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_300Light_Italic',
}}>
Manuale Light Italic
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_400Regular_Italic',
}}>
Manuale Italic
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_500Medium_Italic',
}}>
Manuale Medium Italic
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_600SemiBold_Italic',
}}>
Manuale Semi Bold Italic
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_700Bold_Italic',
}}>
Manuale Bold Italic
</Text>
<Text
style={{
fontSize,
paddingVertical,
// Note the quoting of the value for `fontFamily` here; it expects a string!
fontFamily:
'Manuale_800ExtraBold_Italic',
}}>
Manuale Extra Bold 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-manuale 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 Manuale 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
- Manuale 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.
