Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set soffice (Libreoffice) template / export font #3412

Closed
cataclysmic opened this issue Jun 22, 2018 · 2 comments
Closed

How to set soffice (Libreoffice) template / export font #3412

cataclysmic opened this issue Jun 22, 2018 · 2 comments
Labels
Feature Request wontfix Wont Fix these things, no hate.

Comments

@cataclysmic
Copy link

I am trying to change the font that is used when exporting to docx and pdf.
The pad is set to Arial for alle styles and sizes but when exported Liberation Sans gets used.
I tried replacing the Default.ott template for LibreOffice to no effect.

Guess the parameters need to be send from the etherpad somehow but I have no idea where to start.

Any help is appreciated.

@JohnMcLear
Copy link
Member

Yea see https://ask.libreoffice.org/en/question/172315/is-there-a-way-to-control-the-font-with-convert-to-txt-to-docx/

We convert HTML to Docx so maybe libre office supports font family properties for certain fonts? IDK, but https://github.com/ether/etherpad-lite/blob/develop/src/node/utils/LibreOffice.js#L46 is where you wanna be hacking.

It's unlikely we will bring this in as a feature though because each OS has it's own fonts and then each export util (abiword/libreoffice) will require different settings. Adding support for this could end up being a LOT of code and all just to have a default font on export, not worth it!

One could argue that ep_font_family should be passing the font here btw, try that out and see if it works?

@stale
Copy link

stale bot commented Jul 5, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Wont Fix these things, no hate. label Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request wontfix Wont Fix these things, no hate.
Projects
None yet
Development

No branches or pull requests

3 participants