Programmatically set the font for text editor.
Oxygen general issues.
-
- Posts: 14
- Joined: Tue Sep 27, 2011 11:29 am
Programmatically set the font for text editor.
Hi,
Looking at the FontsPreferencePage (Window -> Preferences -> Author -> Fonts) you can either tell Oxygen to use Eclipse's font settings, 'Map to text font', or specify your own, 'Customize..'.
Is there a way in the oXygen API or framework files to set oXygen to not use the Eclipe font and use a different font by default?
Thanks
Looking at the FontsPreferencePage (Window -> Preferences -> Author -> Fonts) you can either tell Oxygen to use Eclipse's font settings, 'Map to text font', or specify your own, 'Customize..'.
Is there a way in the oXygen API or framework files to set oXygen to not use the Eclipe font and use a different font by default?
Thanks
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Programmatically set the font for text editor.
Hi Daniel,
The simplest override would be to specify in the CSS file used to render the XML document in the Author page a different font family (or font size) using code like:
Whatever exists in the CSS specification for defining font families, sizes, should work.
Regards,
Radu
The simplest override would be to specify in the CSS file used to render the XML document in the Author page a different font family (or font size) using code like:
Code: Select all
*{
font-family:Arial;
font-size:16px;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 14
- Joined: Tue Sep 27, 2011 11:29 am
Re: Programmatically set the font for text editor.
Hi Radu,
Thanks for the quick response. I understand that would work for the Author tab, however will this also work for when the XML editor is set to Text edit mode? ie, after having clicked the tab 'Text'.
Thanks again.
Thanks for the quick response. I understand that would work for the Author tab, however will this also work for when the XML editor is set to Text edit mode? ie, after having clicked the tab 'Text'.
Thanks again.
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Programmatically set the font for text editor.
Hi Daniel,
In this case, the only viable alternative I can think of would be to distribute along with the Oxygen plugin a custom set of default Oxygen preferences like described here:
http://www.oxygenxml.com/doc/ug-editorE ... tions.html
Regards,
Radu
In this case, the only viable alternative I can think of would be to distribute along with the Oxygen plugin a custom set of default Oxygen preferences like described here:
http://www.oxygenxml.com/doc/ug-editorE ... tions.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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