(fontsFolderPath)
| 172 | } |
| 173 | |
| 174 | function registerFontsInFolder(fontsFolderPath) { |
| 175 | const fontsFolder = Folder.fromPath(fontsFolderPath); |
| 176 | |
| 177 | fontsFolder.eachEntity((fileEntity: FileSystemEntity) => { |
| 178 | if (Folder.exists(path.join(fontsFolderPath, fileEntity.name))) { |
| 179 | return true; |
| 180 | } |
| 181 | |
| 182 | if (fileEntity instanceof File && (fileEntity.extension === 'ttf' || fileEntity.extension === 'otf')) { |
| 183 | ios.registerFont(fileEntity.name); |
| 184 | } |
| 185 | |
| 186 | return true; |
| 187 | }); |
| 188 | } |
| 189 | |
| 190 | function registerCustomFonts() { |
| 191 | const appDir = knownFolders.currentApp().path; |
no test coverage detected