Skip to main content
Participant
February 22, 2024
Answered

Help with syntax in FindChangeByList script

  • February 22, 2024
  • 2 replies
  • 617 views

Hello everyone

 

I encountered a problem like this. When I write the two conditions of font + font size in FindChangeByList, only the font attribute works, but not the font size. I don’t know why? code show as below: 

grep	{findWhat:"勻",appliedFont:"方正书宋_GBK",fontSize:"10.5"}	{changeTo:"匀"}	{includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}

 

Not fontSize: "10.5" will also be replaced here.

This topic has been closed for replies.
Correct answer Peter Kahrel

It's pointSize, not fontSize

2 replies

Peter Kahrel
Community Expert
Peter KahrelCommunity ExpertCorrect answer
Community Expert
February 23, 2024

It's pointSize, not fontSize

Amin FangAuthor
Participant
February 26, 2024

Thanks, pointSize is right.

Community Expert
February 22, 2024

I am not sure if I understood this right. So you mean that it is not finding the correct result? What do you mean by fontSize: "10.5" will also be replaced here?

-Manan

-Manan
Amin FangAuthor
Participant
February 22, 2024

Hello, I mean, the characters that satisfy both (appliedFont:"方正书宋_GBK",fontSize:"10.5") are replaced.

 

When I write code, characters that are not (fontSize:"10.5") will also be replaced.