ssureshkumar Power User

Joined: 21 Dec 2005 Posts: 71
|
Posted: Thu May 18, 2006 9:55 pm Post subject: changing default font??? |
|
|
Dear All,
How to change the default font?
Here is the code I got from the examples...
| Code: |
String fontname = "Arial";
XMultiServiceFactory oDocMSF = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class, xSpreadsheetDocument);
XInterface oInt1 = (XInterface) oDocMSF.createInstance("com.sun.star.style.CellStyle");
XPropertySet oCPS1 = (XPropertySet)UnoRuntime.queryInterface( XPropertySet.class, oInt1);
oCPS1.setPropertyValue("CharFontName", fontname);
|
This code is working fine when the OpenOffice Server is running on Windows,
but when the OpenOffice Server run on Linux, I cannot be able to change the default font(Bitstream Vera Sans) of OpenOffice.
Can anybody help me???
Its Urgent.
Thanks in advance,
Suresh. |
|