From a2a77b8e26420c569f9bb88f0402edb0a44c84ab Mon Sep 17 00:00:00 2001 From: Takuya Matsuyama Date: Wed, 3 Nov 2021 15:09:02 +0900 Subject: [PATCH 1/2] fix: use 'Courier New' on iOS The Courier font was removed in iOS 15. --- src/theme/components/code.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/components/code.ts b/src/theme/components/code.ts index f0f9311e3..afd991b77 100644 --- a/src/theme/components/code.ts +++ b/src/theme/components/code.ts @@ -5,7 +5,7 @@ const { variants, defaultProps } = Badge; const baseStyle = { _text: { - fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', + fontFamily: Platform.OS === 'ios' ? 'Courier New' : 'monospace', fontSize: 'sm', }, borderRadius: 'sm', From 8c0113bfde7c93dde885a706d06a5845c6975e4c Mon Sep 17 00:00:00 2001 From: Takuya Matsuyama Date: Wed, 3 Nov 2021 15:12:05 +0900 Subject: [PATCH 2/2] fix: use 'Courier New' on iOS Fix other components --- src/components/composites/Code/index.tsx | 2 +- src/theme/components/kbd.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/composites/Code/index.tsx b/src/components/composites/Code/index.tsx index 4c5b3a465..df76c683f 100644 --- a/src/components/composites/Code/index.tsx +++ b/src/components/composites/Code/index.tsx @@ -14,7 +14,7 @@ const Code = ({ ...props }: ICodeProps, ref?: any) => { return ( ) { _text: { fontSize: 'sm', fontWeight: 'bold', - fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace', + fontFamily: Platform.OS === 'ios' ? 'Courier New' : 'monospace', }, }; }