AS
Hi!
The problem of this code is: the FontList[0].Font(nLocale) just overwrites the font of the attribute, but I want them to be merge. For example: I would like to change only font size of an attribute when it's printed out. Looking forward to hear from you. Thanks
var nLocale = Context.getSelectedLanguage()
var p_aModel = ArisData.getSelectedModels()
var p_StyledValue = p_aModel[0].Attribute(Constants.AT_NAME, nLocale).getHTMLFormattedValue())
var FontList = ArisData.getActiveDatabase().FontStyleList()
p_StyledValue = p_StyledValue.getMergedFormatting(FontList[0].Font(nLocale) )
p_output.OutputFormattedText( p_StyledValue.getHTML() )