Bug 149884 - epub export does not include font
Summary: epub export does not include font
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EPUB-Export
  Show dependency treegraph
 
Reported: 2022-07-06 21:38 UTC by dom83
Modified: 2024-09-16 13:25 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
example odt file (846.28 KB, application/vnd.oasis.opendocument.text)
2022-07-10 21:44 UTC, dom83
Details
example file exported as epub, see the font is wrong (1.20 MB, application/epub+zip)
2022-07-10 21:46 UTC, dom83
Details
example file exported as pdf, see the font is right (1.02 MB, application/pdf)
2022-07-10 21:47 UTC, dom83
Details
my font (46.99 KB, font/ttf)
2022-07-25 15:01 UTC, dom83
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dom83 2022-07-06 21:38:40 UTC
Description:
When exporting as epub, it does not include the custom font.
When exporting as pdf it works though.

Steps to Reproduce:
1.Create a text that uses a custom user font
2.export the document as epub
3.

Actual Results:
Arial font, looks ugly...

Expected Results:
Should use the custom user font


Reproducible: Always


User Profile Reset: No



Additional Info:
include the font
Comment 1 dom83 2022-07-10 21:44:42 UTC
Created attachment 181211 [details]
example odt file
Comment 2 dom83 2022-07-10 21:46:36 UTC
Created attachment 181212 [details]
example file exported as epub, see the font is wrong
Comment 3 dom83 2022-07-10 21:47:49 UTC
Created attachment 181213 [details]
example file exported as pdf, see the font is right
Comment 4 Dieter 2022-07-25 13:59:33 UTC
Thank you for reporting the bug. I can't test it, because I don't have the font installed, that you use in the document. Is it possible to install that font. Or can I test with another font? (Tested with font "Mistral", but couldn't reproduce.

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 5 dom83 2022-07-25 15:01:39 UTC
Created attachment 181405 [details]
my font
Comment 6 QA Administrators 2022-07-26 03:29:49 UTC Comment hidden (obsolete)
Comment 7 Dieter 2022-08-02 12:37:54 UTC
I confirm it with

Version: 7.3.5.2 (x64) / LibreOffice Community
Build ID: 184fe81b8c8c30d8b5082578aee2fed2ea847c01
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Steps to reproduce
1. Install font from comment 5
2. Open attachment 181211 [details]
3. Make sure, that "Only embed fonts, that are used in the document" is selected in File -> Properties -> Font
4. File -> Export As -> Export as EPUB
5. Open file on a system without font from comment 5
Comment 8 Volga 2022-09-20 12:49:41 UTC
One workaround is adding font file manually. But it would be nice to have this option, this option need to copy font file first (maybe making font subset as well?) and then embedded into appreciate path of the EPUB file. BTW is it possible to convert font file to WOFF?
Comment 9 Sophie Sipasseuth 2024-09-16 13:25:48 UTC
Repro, this message appears:

The file 'la petite fille et l'horrible araignée , 2 pages .epub' is corrupt and therefore cannot be opened. LibreOfficeDev can try to repair the file.

The corruption could be the result of document manipulation or of structural document damage due to data transmission.

We recommend that you do not trust the content of the repaired document.
Execution of macros is disabled for this document.

Should LibreOfficeDev repair the file?


When I click "Yes", this message appears:

The file 'la petite fille et l'horrible araignée , 2 pages .epub' could not be repaired and therefore cannot be opened.


This bug is present in the file of the comment 2.
This bug is also present, when I create an epub export of the odt file, I try to open this epub.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e0a5b29f653a314727e23489a3e98daff8386ff6
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: threaded