[Bug 63028] New: Provide font embedding for slideshows

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63028] New: Provide font embedding for slideshows

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63028

            Bug ID: 63028
           Summary: Provide font embedding for slideshows
           Product: POI
           Version: 4.0.x-dev
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SL Common
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

The project [1] which brought me to POI has some font embedding functionality
[2].
My goal is now to provide convenience methods for XSLF and helper classes for
HSLF (not sure, if the unknown font records also contain MTX fonts), to embed
fonts.

In POI, I can only provide the interface to integrate the converted/compiled
MTX fonts - similar to PJs poi-shared-strings project, I forked [3] and will
provide a sfntly project [4] to convert and embed the truetype fonts. Although
google put the code under ASF license, I think it's better to keep it outside
our trunk.

A bit off-topic:
With things like the SVG-support (with huge a dependency to batik, which is not
listed in the poms on purpose), signature support (with dependencies to
bouncycastle / xmlsec) and Apache service mix changes (which we don't track), I
think about a place how to provide those non-core features in a more
user-friendly way. I have two problems with that, either it's forked code (but
with an ASL) or it's simply blowing our dist files with dependencies. We had
already discussions about that, but outsourcing the implementations to private
github repos is also not so convincing ...



[1] https://github.com/kiwiwings/pptx-shape-exporter

[2]
https://stackoverflow.com/questions/47920767/how-to-add-custom-fonts-in-apache-poi-ppt
https://mail-archives.apache.org/mod_mbox/poi-user/201310.mbox/%3C525B017B.90804@...%3E

[3] https://github.com/googlei18n/sfntly
[4] https://github.com/kiwiwings/sfntly

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63028] Provide font embedding for slideshows

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63028

--- Comment #1 from Andreas Beeker <[hidden email]> ---
Created attachment 36341
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36341&action=edit
PPTX with embedded font

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63028] Provide font embedding for slideshows

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63028

--- Comment #2 from Andreas Beeker <[hidden email]> ---
Created attachment 36342
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36342&action=edit
PPT with embedded font

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63028] Provide font embedding for slideshows

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63028

Dominik Stadler <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63028] Provide font embedding for slideshows

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63028

Andreas Beeker <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Andreas Beeker <[hidden email]> ---
Applied via r1849898

There's a new SlideShow.addFont(InputStream fontData) method, i.e. it works for
XSLF and HSLF.

For the glyph subsetting, I've provided the
SlideShowExtractor.getCodepoints(...) methods.

The example project which shows how to use sfntly and POI together is in
https://github.com/kiwiwings/poi-font-mbender

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]