Response of FontStyle in TextStyleRange when Grep Style is active
I bumped on one thing while scripting InDesign and just wanted to ask if anybody already know this issue since I think it is some kind of oversight of mine or just not working OK. I understand that this one is at least harder one...
The issue is weird logic when you are checking the FontStyle of TextStyleRange (TextFrame -> ParentStory -> Paragraphs -> Item -> TextStyleRanges -> Item -> FontStyle) in situation when you have some active GrepStyle applied... just because the grep style application is not a part of TextStyleRange and if you want to check a FontStyle of that part of text, you will get different response in situation either grep styles applies on first character in that range or not....
So... main issue is that grep style is not included in textStyleRange or presentation of grep style attribute in font style field. Either grep style shoud be included in TextStyleRange, either if grep style is active - than it should not change the fontstyle information because it is not applied by a "human" 🙂 - maybe this would be soulution.
tnx. bye...
