Link and embedded fonts
Hi,
I'm using this to set the general format of my text flow:
<TextFlow xmlns='http://ns.adobe.com/textLayout/2008' fontSize='16' textIndent='0' paragraphSpaceAfter='0' paddingTop='5' paddingLeft='0' paddingRight='0' lineHeight='100%' fontFamily='RockwellCFF'>
<TextLayoutFormat color='#ff0000' id='hoverOverBrand' />
<TextLayoutFormat color='#00ff00' id='mouseDownOverBrand' textDecoration='underline' />
<TextLayoutFormat color='#0000ff' id='defaultLinkBrand'/>
<TextLayoutFormat color='#0000ff' id='hoverOverEmail'/>
<TextLayoutFormat color='#0000ff' id='mouseDownOverEmail' lineThrough='true' />
I'm also loading some embedded fonts, that's working ok.
When I apply a link to the current selection, I use this code:
IEditManager( textFlow.interactionManager ).applyLink( url, linkTarget, false);
The problem I have is that when the link is applied, the selection looses it's font family value and there is no way to re-format it again.
is it possible to declare a CFF setting in the "defaultLinkBrand" so all links keep the original font family?
any ideas will be appreciated.
