Page 1 of 1

Normalize fonts in PPTX

PostPosted: Sat Jul 18, 2015 11:22 pm
by pablo
Hi,

If a run doesn't have a font set, PowerPoint goes up the hierarchy and find the correct font based on the character, language, paragraph, theme...
How can I set the font of all runs in a PPTX presentation implicitly?
In other words, I'm trying to set the find the font that will be used to display the run and set it in the XML so tools that don't have the font selection logic will still be able to display the presentation.

Does RunFontSelector support PPTX or does it only work with Word?
I see WordprocessingML import but nothing related to PresentationML
https://github.com/plutext/docx4j/blob/ ... r.java#L11

Thanks

Re: Normalize fonts in PPTX

PostPosted: Tue Jul 21, 2015 2:49 pm
by jason
RunFontSelector is intended for docx pkg only.

I haven't looked into how similar or different the algorithm is in Powerpoint. Perhaps you could look into that?

If it turns out to be close, then we could generalise RunFontSelector

(And what about spreadsheets?)