https://bugs.documentfoundation.org/show_bug.cgi?id=153041

            Bug ID: 153041
           Summary: Empty document ODT includes unnecessary font
                    declarations
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

If I create a new Writer document and save it, contents.xml contains:

<office:font-face-decls>
  <style:font-face style:name="David CLM" svg:font-family="&apos;David
CLM&apos;"/>
  <style:font-face style:name="David CLM1" svg:font-family="&apos;David
CLM&apos;"
       style:font-family-generic="system" style:font-pitch="variable"/>
  <style:font-face style:name="Liberation Sans"
svg:font-family="&apos;Liberation Sans&apos;"
       style:font-family-generic="swiss" style:font-pitch="variable"/>
  <style:font-face style:name="Liberation Serif"
svg:font-family="&apos;Liberation Serif&apos;"
       style:font-family-generic="roman" style:font-pitch="variable"/>
  <style:font-face style:name="Nachlieli CLM" svg:font-family="&apos;Nachlieli
CLM&apos;"
       style:font-family-generic="system" style:font-pitch="variable"/>
  <style:font-face style:name="Noto Sans CJK SC" svg:font-family="&apos;Noto
Sans CJK SC&apos;"
       style:font-family-generic="system" style:font-pitch="variable"/>
  <style:font-face style:name="Noto Serif CJK SC" svg:font-family="&apos;Noto
Serif CJK SC&apos;"
       style:font-family-generic="system" style:font-pitch="variable"/>
</office:font-face-decls>

never mind the specifics of these font-face elements; it does not seem any of
them should be present. If anything, they are relevant to the styles embedded
in this document - which IIUC belong in styles.xml. In fact, styles.xml does
actually have this same font-face-decls element already!

Adding it seems like a bug to me.

I'm also not sure that font-face-decls belong in contents.xml even for
documents which are non-empty, and even if they have DF involving font settings
- but that is for ODF experts to say.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to