Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Missing Font error, but no layers seem to use that font

Participant ,
Jun 14, 2024 Jun 14, 2024

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?

TOPICS
Error or problem
194
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 17, 2024 Jun 17, 2024
LATEST

@Amozza 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines