OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Update font references in XML

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Marinus
OOo Advocate
OOo Advocate


Joined: 07 Nov 2004
Posts: 261

PostPosted: Thu Aug 04, 2005 8:26 am    Post subject: Update font references in XML Reply with quote

Hi,

I have just migrated to Linux and found my pilot logbook in Calc created on and for Windows to be a bit 'distorted' due to missing fonts in Linux and other font/button/dialog sizing issues.

So, what I would like to do is do a XML wide find/replace action and replace for example all 'Arial' font designators in the various XML modules with 'Bitstream Vera Sans' as this is pretty much undoable to do manually (timewise).
Is that dangerous? Is there a macro out there that does all this? I could write one myself but I have never done anything like it and have read some posts in other parts of this forum that seem to indicate that it's a bit tricky to edit XML.

Your thoughts and idea's are highly appreciated.

Thanks,

Marinus.
Back to top
View user's profile Send private message Visit poster's website
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Fri Aug 05, 2005 6:08 am    Post subject: Reply with quote

Quote:
replace for example all 'Arial' font designators in the various XML modules with 'Bitstream Vera Sans' as this is pretty much undoable to do manually (timewise).


I think OOo do it automaticaly. I have a lot of documents using Arial font. And because I don't use sufficiently "style" possibilities I am unable to replace that font (I have to do it manually). But when I open them under Linux where I have not installed Arial police they appear to be Arial like. It's a topic requiring further sudy but I never do it : how it is managed exacly ?
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
Marinus
OOo Advocate
OOo Advocate


Joined: 07 Nov 2004
Posts: 261

PostPosted: Fri Aug 05, 2005 6:31 am    Post subject: Reply with quote

Hi Serge,

that is exactly my problem: Arial to Linux.
However, on my 1024/768 laptop Arial 10 pt is too large and dialogs 'explode'.
Therefore I would like to do a document wide restructure. This ofcourse is no
problem with cells but for Dialogs and Buttons is undoable.

I think I'm going to take the risk and write a simple macro, and execute it on a copy first ofcourse ... Smile

Thanks,

Marinus.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group