ONLYOFFICE/DocumentBuilder

Handle fonts from `~/.local/share/fonts`

sduensin opened this issue · 8 comments

Given the following document:

Screenshot from 2020-04-30 17-11-12

And this document script:

builder.OpenFile("Manual.docx");
builder.SaveFile("pdf", "/tmp/Manual.pdf");
builder.CloseFile();

The resulting PDF does not contain the custom font:

Screenshot from 2020-04-30 17-11-51

I am running Linux Mint 19.3 Cinnamon.

Hi, could you attach original docx file?

Sure! Test document and font attached.

FontProblem.docx

BreatheFire-65pg.ttf.zip

Seems everything fine for me:
image

Which version of DocumentBuilder are you using?
And in which plase this font is installed? I installed mine at (via default Kubuntu font utility) at:

fc-list | grep Breath
/usr/local/share/fonts/b/BreatheFire_65pg.ttf: Breathe Fire:style=Regular
$ fc-list | grep Breath
/home/scott/.local/share/fonts/BreatheFire-65pg.ttf: Breathe Fire:style=Regular
$ dpkg -l | grep documentbuilder
ii  onlyoffice-documentbuilder                 5.3.3-43                                         amd64        tool to create documents in office file formats including Office Open XML formats:

I installed the font using the "Fonts" application in Linux Mint.

@sduensin try to copy this font to same location as mine and see if it fix your problem

That fixed it. Still seems like a bug if the system itself knows about the font in my home directory.

Thanks! I'm back in business! :-)

@sduensin Yeah, I agree that it is a bug, and seems it should be fixed in v5.5, but we skipped several releases of DocumentBuilder for some reason unknown for me, so I'll try to figure out can we release v5.5

DocumentBuilder v6.0.0 is released

This issue should be fixed