Change the font color
Post here questions and problems related to editing and publishing DITA content.
			- 
				sorin_ristache
 - Posts: 4141
 - Joined: Fri Mar 28, 2003 2:12 pm
 
Re: Change the font color
Post by sorin_ristache »
Hi,
In what output do you want to set a text color? Is it DITA PDF output? If yes, you have to add a color attribute for the DITA element that you want to set the color. For example to set a green color for the text that comes from DITA codeblock elements you have to add the following:
in the attribute set with the attribute name="codeblock" in the following file, or in the customized version of the following file if you set the customization.dir parameter in your DITA PDF transformation:
Regards,
Sorin
			
			
									
									
						In what output do you want to set a text color? Is it DITA PDF output? If yes, you have to add a color attribute for the DITA element that you want to set the color. For example to set a green color for the text that comes from DITA codeblock elements you have to add the following:
Code: Select all
  <xsl:attribute name="color">rgb(0, 250, 0)</xsl:attribute>Code: Select all
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\cfg\fo\attrs\pr-domain-attr.xslRegards,
Sorin
Return to “DITA (Editing and Publishing DITA Content)”
			
				Jump to
				
			
		
			
			
	
	- Oxygen XML Editor/Author/Developer
 - ↳ Feature Request
 - ↳ Common Problems
 - ↳ DITA (Editing and Publishing DITA Content)
 - ↳ Artificial Intelligence (AI Positron Assistant add-on)
 - ↳ SDK-API, Frameworks - Document Types
 - ↳ DocBook
 - ↳ TEI
 - ↳ XHTML
 - ↳ Other Issues
 - Oxygen XML Web Author
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen Content Fusion
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen JSON Editor
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen PDF Chemistry
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen Feedback
 - ↳ Feature Request
 - ↳ Common Problems
 - Oxygen XML WebHelp
 - ↳ Feature Request
 - ↳ Common Problems
 - XML
 - ↳ General XML Questions
 - ↳ XSLT and FOP
 - ↳ XML Schemas
 - ↳ XQuery
 - NVDL
 - ↳ General NVDL Issues
 - ↳ oNVDL Related Issues
 - XML Services Market
 - ↳ Offer a Service