Agamnentzar / ag-psd

Javascript library for reading and writing PSD files
Other
504 stars 66 forks source link

how to import custom font like ttf file to text layer in write psd #163

Open aticzz opened 9 months ago

Agamnentzar commented 9 months ago

Is it possible to do that in photoshop? If yes you can see what output you get from readPsd when reading PSD file with custom font. You can also share PSD file with custom font so I can check if it's read correctly.

skushagra commented 4 days ago

Photoshop supports all the fonts available in your system and will export them with there Postscript name under text.style.font.name which can be seen in the read PSD. While writing to the PSD file you need to specify the font post script name in the text.style.font.name and this font should be available on you local machine. Once this is done photoshop will the show the text in that font style.