I’m trying to make a PDF that uses the courier font, but the file doesn’t change to it
const styles = StyleSheet.create({
text: {
fontFamily: "Courier"
}
});
const MakePDF = () => {
return (<Document><Page size="A4"><View>
<Text style={styles.text}>test</Text>
</View></Page></Document>)}
export default ExportPDF
it keeps just using the default font. I’ve already tried importing directly from a file on the computer, but it still doesn’t work
New contributor
Lucas Portela is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.