photoshop-cs3

photoshop cs3 scripting - font names

≯℡__Kan透↙ 提交于 2019-12-24 14:22:33
问题 i am trying to set the font of a textItem, using textItem.font which accepts a string, but i do not know the exact font names to refer in code, i am trying to achieve something like this var newLayer = docRef_1.artLayers.add(); newLayer.kind=LayerKind.TEXT; var textItemRef = newLayer.textItem; textItemRef.contents = someCharacter; textItemRef.size = 120; textItemRef.font="Verdana-Bold"; but the font names to refer in code are not the same as they appear in photoshop UI for e.g Arial is

Photoshop Script to create text in a bitmap image in Photoshop

拈花ヽ惹草 提交于 2019-12-21 23:47:48
问题 I have very large size 1-bit images that I need to write arrays of text to in Photoshop. I can do this in javascript by converting the images to grayscale and then creating a new layer for each block of text, but I would like to be able to write text directly onto the 1-bit bitmap to save time. Is there a way to do this in javascript? 回答1: You can create text with scripting. You will need to be in grayscale (or RGB) to do so. Here's a basic text function. You will have to position the text