🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.indesign.sdk
4 messages
4 total messages Started by pallavik Fri, 27 Mar 2009 11:37
How to distinguish textmodel string in two different fonts.
#186
Author: pallavik
Date: Fri, 27 Mar 2009 11:37
9 lines
1028 bytes
Hello All,
  I have indesign cs3 textmodel with more than one font used in it, with diffrent font attributes.
How I will come to know that form where different font use is started , and how should I retrive the attribute.
I am able to get the fonts used in the textmodel.But how should I retrive the position in the textmodel.
Like :-
   some text with :- Microsoft Sans Serif Bold, font size 48
some text with :-Times new Roman Regular, font size 28

Please reply.
Re: How to distinguish textmodel string in two different fonts.
#188
Author: Norio_Kawamura
Date: Sat, 28 Mar 2009 02:52
2 lines
745 bytes
You can get the changes of all attributes by IAttributeStrand::GetLocalOverrides.
You can change attributes by ITextModelCmds::ApplyCmd.
Re: How to distinguish textmodel string in two different fonts.
#8
Author: pallavik
Date: Tue, 31 Mar 2009 12:57
4 lines
807 bytes
Hi ,
  Thanks for reply.
  Using IAttributestrand::GetLocalOverrides I am able to get the range of characters with same font attribute, But I am retriving font name and font style as null.
Please reply.
Re: How to distinguish textmodel string in two different fonts.
#11
Author: Norio_Kawamura
Date: Wed, 01 Apr 2009 01:57
1 lines
801 bytes
If ITextAttrUID from the LocalOverrides is NULL, you need to get the ITextAttributes from the applied style.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads