From e2afe2ce3f7b167ec758aed0524fbcc8ff7c55dc Mon Sep 17 00:00:00 2001 From: bdkopen Date: Fri, 26 Apr 2024 23:19:20 -0400 Subject: [PATCH] chore: improve font family fallback test to include available fonts --- .../examples/src/fontFamilyFallback/index.jsx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/packages/examples/src/fontFamilyFallback/index.jsx b/packages/examples/src/fontFamilyFallback/index.jsx index bd249543a..148bdf034 100644 --- a/packages/examples/src/fontFamilyFallback/index.jsx +++ b/packages/examples/src/fontFamilyFallback/index.jsx @@ -16,8 +16,13 @@ const styles = StyleSheet.create({ }, regular: { fontFamily: ['Roboto', 'NotoSansArabic'], + fontSize: '14', fontWeight: 900, }, + default: { + fontFamily: ['Courier-Bold', 'NotoSansArabic'], + fontSize: '14', + }, }); Font.register({ @@ -43,7 +48,19 @@ Font.register({ const MyDoc = () => { return ( - Test امتحان + + This font is default Courier + + + The following is partially Roboto and Noto Sans Arabic + + + Roboto / امتحان + + + The following is partially Courier-Bold and Noto Sans Arabic + + Courier-Bold / امتحان ); };