chilli-axe / mtg-photoshop-automation

Photoshop scripting to generate high-quality Magic card renders, inserting Scryfall data into Photoshop frame templates.
GNU General Public License v3.0
60 stars 39 forks source link

Mana symbols and rules text font size are miscalculated (too large) #15

Closed aarongrando closed 3 years ago

aarongrando commented 4 years ago

See two examples here: https://imgur.com/a/FJfE71j

Have tried nailing down in the code where/how the scaling happens but haven't quite figured it out.

OSX Photoshop 21.1.1

Emad88 commented 4 years ago

I have the same issue on Windows with CC2018 and found a workaround.

Things I noticed:

I fiddled with the scripts a bit and halving the font size seems to work for creature cards that use the normal.psd template (I haven't tried others), the text resizes nicely even when very long.

The lines I changed:

In formatText.js line 206 var myFontSize = app.activeDocument.activeLayer.textItem.size / 2;

In excessFunctions line 7 startingFontSize = textLayer.textItem.size /2;

Not sure why this happens as textItem.size is used for the name and typeline and it works just fine there, but since those two use a different font maybe it's MPlatin that creates issues.

ndepaola commented 3 years ago

fixed in recent rewrite