Mobile app version of vmapp.org
Login or Join
Moriarity648

: Photoshop copy css for transformed text that respects aspect ratio I'm really exited about the copy css feature. It helps me, a web developer, to get most of the font styles, gradients and

@Moriarity648

Posted in: #AdobePhotoshop #Css

I'm really exited about the copy css feature. It helps me, a web developer, to get most of the font styles, gradients and rounded corners out of a psd in no time.

I have however an problem. Sometimes, designers instead of increasing the font size by incrementing the font size, they start a transform by cmd+clicking on a corner of the text area and alt+drag it to change the size of the font.

This messes up the resulting css. Instead of getting the actual font size that results after the resizing operation, we get a translate matrix property which is kinda useless when working on a blog or something like that.

Is there a way to force the transformed text to report its real value in px/pt instead of the original + the transformed property?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Moriarity648

1 Comments

Sorted by latest first Latest Oldest Best

 

@Hamm6457569

It seems like once Photoshop locks onto a transform, it never lets go of it (at least in the currently released versions).

The CSS starts with the original font size, and Photoshop reports the effective (post-transform) font size, but you can't clear the transform from the CSS by reverting the type to its original size (as reported in the CSS), then manually assigning it the final design point size. For no reasonable reasons, this retains the transform matrix and now reports a scaled-down "original" size.

Since Photoshop has no way to clear transformations, the only real workaround is to copy the text, create a new (point or area) text field and paste, then change the size to the reported point size of your original. Move the new text exactly over the old and delete the old layer.

And tell your designers "Don't do that."

This really is a bug, and I've reported it as such, although I suspect it's "as designed" because of the way Ps handles its data internally.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme