skip to Main Content

Reactjs – react-pdf font doesn't change

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>)}…

VIEW QUESTION
Back To Top
Search