From 2a28035c3508a0d9247308aa01fdd78d0a70784a Mon Sep 17 00:00:00 2001 From: zilicon Date: Thu, 7 Jan 2021 16:53:51 -0500 Subject: [PATCH] Fix missing Times New Roman font at runtime --- {assets => ios/Fonts}/Times New Roman.ttf | Bin ios/RNReactNativePdfLib.podspec | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename {assets => ios/Fonts}/Times New Roman.ttf (100%) diff --git a/assets/Times New Roman.ttf b/ios/Fonts/Times New Roman.ttf similarity index 100% rename from assets/Times New Roman.ttf rename to ios/Fonts/Times New Roman.ttf diff --git a/ios/RNReactNativePdfLib.podspec b/ios/RNReactNativePdfLib.podspec index 98cc292..620835f 100644 --- a/ios/RNReactNativePdfLib.podspec +++ b/ios/RNReactNativePdfLib.podspec @@ -16,6 +16,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = '8.0' s.dependency 'React' s.source_files = "**/*.{h,mm}" + s.resources = "Fonts/*.ttf" s.header_mappings_dir = "lib/include" s.ios.vendored_libraries =["lib/universal/libFreeType.a", "lib/universal/libLibJpeg.a", "lib/universal/libLibTiff.a", "lib/universal/libPDFWriter.a", "lib/universal/libZlib.a"] -end \ No newline at end of file +end