>I would implement font subsetting later on ... both, iterating through the
text shapes/runs and specifiying on the
>sfntly conversion, seem to be trivial

Font subsetting is not a big deal. A default "All Characters" mode would be
fine IMO.

>I don't know ... for my ISO-8859-1 requirements I didn't need them. You'll
find my repacked version under
>https://code.google.com/p/**pptx-shape-exporter/source/**
browse/#git%2FPptx-Shape-**Exporter%2Fsfntly-repo%2Fcom%**
2Fgoogle%2Ftypography%**2Fsfntly%2F1.0<https://code.google.com/p/pptx-shape-exporter/source/browse/#git%2FPptx-Shape-Exporter%2Fsfntly-repo%2Fcom%2Fgoogle%2Ftypography%2Fsfntly%2F1.0>
>So it's an extra 280kb ...

Why did you need to repack sfntly? Was it repackaging only or you changed
the source code too?
I'm fine to include and distribute this library with POI but I'd like it to
be an official release, not a fork.

Yegor


On Mon, Oct 14, 2013 at 12:24 AM, Andreas Beeker <[email protected]>wrote:

> > Can you give an insight of how fonts are embedded in pptx?
>
> Fonts are stored under /ppt/fonts/*.fntdata in the pptx, always in EOT
> format.
> EOT fonts are subsetted and compressed fonts (
> http://en.wikipedia.org/wiki/**Embedded_OpenType<http://en.wikipedia.org/wiki/Embedded_OpenType>
> )
> and come in two flavors MicroType Express (MTX) and Non-MTX.
> MTX (http://www.w3.org/Submission/**MTX/<http://www.w3.org/Submission/MTX/>)
> is a optimized version where certain
> font rendering tables are omitted, but I don't know more about the
> internals.
> With sftnly I could only convert ttf to mtx - the otf fonts, which I've
> tried, lead to conversion errors,
> so I've decided to not default to mtx conversion.
>
> When PowerPoint opens a pptx with embedded fonts, they will get converted
> to ttf and temporarily
> installed under windows/fonts ... so if you want a certain font, open the
> slideshow and then copy
> it from the fonts directory ;) ... when Powerpoint exits, the fonts get
> removed again.
>
> As mentioned before, normal enterprise users might not be allowed to
> install fonts - at least under
> Windows XP ... we switched to Win 7 in the meantime, but I haven't tried
> since then ...
>
> Btw. Libre Office 4.1 annonced also to support font embedding ... I
> haven't tried it yet though
>
>
>
> > Does PowerPoint internally store fonts in the eot format ?
>
> Powerpoint can only use fonts installed under windows/fonts and will
> convert them on-the-fly
> when you activate the font embedding setting.
>
>
>
> > Do you embded all glyphs or only the ones actually used in the
> presentation?
>
> I would implement font subsetting later on ... both, iterating through the
> text shapes/runs and specifiying on the
> sfntly conversion, seem to be trivial
>
>
>
> > I see  that sfntly depends on icu4j. Will we need to include these jars
> as well?
>
> I don't know ... for my ISO-8859-1 requirements I didn't need them. You'll
> find my repacked version under
> https://code.google.com/p/**pptx-shape-exporter/source/**
> browse/#git%2FPptx-Shape-**Exporter%2Fsfntly-repo%2Fcom%**
> 2Fgoogle%2Ftypography%**2Fsfntly%2F1.0<https://code.google.com/p/pptx-shape-exporter/source/browse/#git%2FPptx-Shape-Exporter%2Fsfntly-repo%2Fcom%2Fgoogle%2Ftypography%2Fsfntly%2F1.0>
> So it's an extra 280kb ...
>
> Andi.
>
>
> On 13.10.2013 20:11, Yegor Kozlov wrote:
>
>> Can you give an insight of how fonts are embedded in pptx? Does PowerPoint
>> internally store fonts in the eot format ?
>>
>> Do you embded all glyphs or only the ones actually used in the
>> presentation? I recall that for the binary .ppt format PowerPoint embeds
>> font subset .
>>
>> I see  that sfntly depends on icu4j. Will we need to   include these jars
>> as well?
>>
>> Yegor
>>
>>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> [email protected].**org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>

Reply via email to