Skip to content

Commit 723cc5a

Browse files
authored
Merge pull request #1054 from adelcastillov/otf-support-in-fonts-action
small fix to provide otf font support in the automatic font installer
2 parents 4fa3bf3 + 49f7872 commit 723cc5a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/nexrender-action-fonts/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ module.exports = async (job, settings, params, type) => {
139139
continue;
140140
}
141141

142-
if (!asset.src.match(/\.(ttf)$/)) {
142+
if (!asset.src.match(/\.(ttf)$/) && !asset.src.match(/\.otf$/)) {
143143
continue;
144144
}
145145

146146
if (!asset.name) {
147-
throw new Error(`Asset ${asset.src} has to be named using the "name" property that would contain the font name as it is used to be then used in the After Effets project.`);
147+
throw new Error(`Asset ${asset.src} has to be named using the "name" property that would contain the font name as it is used to be then used in the After Effects project.`);
148148
}
149149

150150
if (process.platform === "darwin") {
@@ -165,7 +165,7 @@ module.exports = async (job, settings, params, type) => {
165165
continue;
166166
}
167167

168-
if (!asset.src.match(/\.(ttf)$/)) {
168+
if (!asset.src.match(/\.(ttf)$/) && !asset.src.match(/\.otf$/)) {
169169
continue;
170170
}
171171

0 commit comments

Comments
 (0)