【问题标题】:Photoshop Script to change Font and Font SizePhotoshop 脚本更改字体和字体大小
【发布时间】:2015-05-10 23:11:49
【问题描述】:

寻找将 PSD 中的所有文本更改为特定字体大小和字体类型的脚本,在本例中为“AbrilFatface-Regular”@ 101px。然后我想使用这个脚本来批量更改数百个使用相同字体和大小的文件(因此不需要提示)。

谢谢!

【问题讨论】:

    标签: javascript automation action photoshop


    【解决方案1】:

    这就像一个冠军:

    if(app.documents.length != 0){
    var doc = app.activeDocument;
    
    for(i = 0; i < doc.artLayers.length; ++i){
        var layer = doc.artLayers[i];
    
        if(layer.kind == LayerKind.TEXT){
            layer.textItem.font = "REPLACE WITH POSTSCRIPT FONT NAME";
            layer.textItem.size = new UnitValue(REPLACE WITH FONT SIZE,  "px");
        }
    }
    }
    

    【讨论】:

      猜你喜欢
      • 2021-07-18
      • 2011-06-14
      • 1970-01-01
      • 2011-06-25
      • 1970-01-01
      • 1970-01-01
      • 2011-05-26
      • 1970-01-01
      • 2016-10-08
      相关资源
      最近更新 更多