Copy link to clipboard
Copied
Whenever I open a specific project in AE I get a Missing Font dialog, but the text layers in the project do not seem to be using that stated missing font (Replica).
The project is a MOGRT that has 4 text layers. One is a master layer ("Caption Text") which is used in the EG panel to have the user type in the text and change the font properties. The other three layers have the following expression on the Source Text property to display the text from the master layer:
sourceTextProperty = thisComp.layer("Caption Text").text.sourceText;
newStyle = sourceTextProperty.getStyleAt(0,0);
newStyle.setText(sourceTextProperty);When I search for "missing font" in the Timeline panel Search box, the three "sub" layers are shown.
All text layers show they are using Roboto in the Character panel when I select them individiually or as a group.
Where else could the missing font be hiding?
Copy link to clipboard
Copied
var uf = app.project.usedFonts;
for (var u = 0; u < uf.length; u++) {
var f = uf[u].font;
if (f.postScriptName == "Replica") {
var usedAt = uf[u].usedAt;
for (var ua = 0; ua < usedAt.length; ua++) {
app.log(usedAt[ua].layerID);
}
}
}
The above might be a bit helpful to you - see here for more info on this API: https://ae-scripting.docsforadobe.dev/general/project.html#project-usedfonts
Douglas Waterfall
After Effects Engineering
Find more inspiration, events, and resources on the new Adobe Community
Explore Now