I've just inherited a presentation with a horrible mishmash of slides each of which were edited by different people at different times, and which have been copied from all over the place. I'd like to be able to have a single way to select the presentation properties and clean it up, forcing every single font in hundreds of slides and multiple masters into the same, single typeface. (Another advantage of this would be to clean up the huge files: when LO embeds the fonts, it has about 15 font files included) This isn't about font-replacement on my system, it's about cleaning up the source document. It's effectively something like doing this on the document source. $document = preg_replace('/font-face:".*"'/, 'font-face:$new_font', $document); Thanks!
I don't know if it works but it could be a basis: - make a backup of your file so in case of pb, you can use this one. - if your file is not odp, save it into odp or pptx if you need to use MS format. - rename your file into <file>.zip - unzip your file - find the font places and make replacements - zip back the whole structure - rename your file into <file>.odp/pptx
Julien's method can work, although it requires some care. It can also help in figuring out the XML to save the document with pretty printing expert option activated: Tools - Options - Advanced - Open Expert Configuration, search: pretty. Set PrettyPrinting to true. For other ideas, you can ask in https://ask.libreoffice.org/