https://bugs.documentfoundation.org/show_bug.cgi?id=114140
Bug ID: 114140
Summary: [ODF] Improve the kind embedded fonts are addressed in
the file
Product: LibreOffice
Version: 5.4.3.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs@lists.freedesktop.org
Reporter: rb.hensc...@t-online.de
Created attachment 138068
--> https://bugs.documentfoundation.org/attachment.cgi?id=138068&action=edit
File generated by LibreOffice with embedded fonts
For describing and embedding this structure is used e.g. (see attached file)
<office:font-face-decls>
<style:font-face style:name="Cambria" svg:font-family="Cambria"
style:font-family-generic="roman">
<svg:font-face-src>
<svg:font-face-uri xlink:href="Fonts/font3.ttf" xlink:type="simple">
<svg:font-face-format svg:string="truetype"/>
</svg:font-face-uri>
<svg:font-face-uri xlink:href="Fonts/font4.ttf" xlink:type="simple">
<svg:font-face-format svg:string="truetype"/>
</svg:font-face-uri>
<svg:font-face-uri xlink:href="Fonts/font5.ttf" xlink:type="simple">
<svg:font-face-format svg:string="truetype"/>
</svg:font-face-uri>
<svg:font-face-uri xlink:href="Fonts/font6.ttf" xlink:type="simple">
<svg:font-face-format svg:string="truetype"/>
</svg:font-face-uri>
</svg:font-face-src>
</style:font-face>
</office:font-face-decls>
The files font3.ttf to font6.ttf contain the different font faces regular,
bold, italic and bold-italic.
The ODF schema allows several <svg:font-face-uri> child elements for a
<svg:font-face-src> element. The purpose of that feature is, that you can
include different formats of the same font, e.g. "truetype" or "opentype" or
"type-1". The format itself is then given in the <svg:font-face-format>
element.
This feature is miss-used here to include different fonts into one
<svg:font-face-src> element.
Problems with that:
The font descriptor attributes of the <style:font-face> element would allow a
very detailed description of the font, but that is here not possible, because
different fonts are in included. Consumers will not directly know, which font
is to be used for e.g. italic.
At the time the file is written LibreOffice knows the font characteristics. But
it does not save this information. So when opening the file, LibreOffice has to
do again a detection in the font files themselves to recreate this information.
That is avoidable effort.
Solution is to use for each font file its own <style:font-face> declaration.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs