Photoshop CC reports wrong font size via scripting API

  • 1
  • Problem
  • Updated 3 years ago
After free transforming a text layer, Photoshop reports a (very!) incorrect and messed up font size through the scripting API. I've also seen the problem occur after simply scaling the entire PSD document, but I can't seem reproduce that consistently.

The font size shown in PS in the Character panel is correct - only the size reported to scripts is affected. Manually entering a new size in the Character panel does not "reset" the error. Only way to get the font size correct again, is to delete the layer and create a new.

This is a very serious bug for all scripts interacting with text layers.

Tested with PS CC, but I think the bug was present in CS6 too.

Photo of Rune Lund Hermansen

Rune Lund Hermansen

  • 10 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Chris Cox

Chris Cox

  • 20280 Posts
  • 765 Reply Likes
Did you install the Photoshop 14.1.2 update?
Photo of Rune Lund Hermansen

Rune Lund Hermansen

  • 10 Posts
  • 0 Reply Likes
Yes, I'm on 14.1.2 x64 Windows7. I think it's the same on Mac.
Photo of Paul Riggott

Paul Riggott

  • 346 Posts
  • 131 Reply Likes
Yes the problem has not been fixed with CC or CS6.
I have put a function to get the font size under "Snippets" @ http://www.ps-bridge-scripts.talktalk...
Hope it might help someone until this problem gets fixed on both CS6 and CC
Photo of Rune Lund Hermansen

Rune Lund Hermansen

  • 10 Posts
  • 0 Reply Likes
Thanks Paul, that looks very helpful. I'll give it a try.
Photo of rancpine cui

rancpine cui

  • 1 Post
  • 0 Reply Likes
The snippets really helps a lot, thank you Paul & Rune ;)