Photoshop JSX font size -


upd: using photoshop cc 5

i writing script replacing strings in psd text layers. works fine, except in of layers text size smaller of original strings. when log text size before , after change contents, indeed different:

the old size , new size: 74.601448059082 pt : 38.3819046020508 pt 

i tried saving old size in var , setting size after change content, text size still wrong (and equal second value). doing wrong?

here code use replacing string , logging:

var originalstring = layerset.textitem.contents; var replacementstring = "";  replacementstring = mmifromlines(originalstring, lines);  var oldsize = layerset.textitem.size; var oldkind = layerset.textitem.kind;  layerset.textitem.contents = replacementstring;  log.writeln("the old size , new size: " + oldsize.value + " " + oldsize.type + " : " + layerset.textitem.size.value + " " + layerset.textitem.size.type);  log.writeln("old kind vs new kind: " + oldkind + " : " + layerset.textitem.kind);   layerset.textitem.size = new unitvalue(oldsize.value,  oldsize.type);  log.writeln("the new text size in layer: " + layerset.textitem.size.value + " " + layerset.textitem.size.type); log.writeln("_____________________________________________"); 


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -