Bug 284694

Summary: Support for embedded fonts is missing.
Product: [Applications] calligracommon Reporter: Jos van den Oever <jos>
Component: text-layoutAssignee: Calligra Bugs <calligra-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: file with embedded font

Description Jos van den Oever 2011-10-22 11:46:56 UTC
Created attachment 64787 [details]
file with embedded font

Version:           unspecified (using Devel) 
OS:                Linux

ODF specification allows for embedded fonts since version 1.0.
The relevant specifications are:
  http://docs.oasis-open.org/office/v1.0/OpenDocument-v1.0-os.pdf "14.6 Font Face Declaration"
  http://www.w3.org/TR/2003/REC-SVG11-20030114/fonts.html#FontFaceElement
  http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#referencing



Reproducible: Didn't try

Steps to Reproduce:
Load the attached example. In includes an embedded font that contains only black blocks.
Comment 1 Jos van den Oever 2011-10-22 11:47:36 UTC
  <office:font-face-decls>
    <!-- in this example, font matching is bypassed by using style:name -->
    <style:font-face style:name="myfont" svg:font-family="'AHEM'">
      <svg:font-face-src>
        <svg:font-face-uri xlink:href="AHEM____.TTF">
          <svg:font-face-format svg:string="truetype"/>
        </svg:font-face-uri>
      </svg:font-face-src>
    </style:font-face>
  </office:font-face-decls>
  <office:styles>
    <style:style style:name="embeddedfont" style:family="paragraph">
      <style:text-properties style:font-name="myfont" fo:font-size="12pt" style:letter-kerning="true" fo:color="#000000"/>
    </style:style>
  </office:styles>