[Libreoffice-bugs] [Bug 118417] New: OpenType tags wrongly exported on xhtml or EPUB
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 27 15:40:11 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=118417
Bug ID: 118417
Summary: OpenType tags wrongly exported on xhtml or EPUB
Product: LibreOffice
Version: 6.0.5.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: filters and storage
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: rgb.mldc at gmail.com
Created attachment 143168
--> https://bugs.documentfoundation.org/attachment.cgi?id=143168&action=edit
Test files. Original ODT, plus exported EPUB and xhtml and "fixed" xhtml
Let's suppose I build a document using Libertinus Serif as main font and that
some portion of the text have an OpenType tag like "smcp" (small caps) applied.
When exporting the document to xhtml or EPUB the corresponding css style gets
as font name
font-family:Libertinus Serif:smcp;
which of course is not interpreted by the target program. I do not know that
much of css, but I think the font name should translate as an style with
something like
font-family:Libertinus Serif; font-feature-settings:"smcp" 1;
In fact, if I manually "fix" the xhtml file by changing the line
.T1 { font-family:Libertinus Serif:smcp; }
into
.T1 { font-family:Libertinus Serif; font-feature-settings:"smcp" 1; }
the small caps text works without problems on my browser.
This problem is particularly important when fonts are embedded on the document
and the target renderer does not recognize the badly formatted font family,
giving a replacement font instead.
The attachment contains:
- original odt file
- exported EPUB file
- exported xhtml file
- "fixed" xhtml file
Everything tested on LibO 6.0.5.2
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180627/09a015bd/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list