<div dir="ltr">Thanks Lubos<div><br></div><div>I should clarify, I already have an eot->ttf converter working; proof positive that MS and Monotype's documentation is sufficient :). I just need to clean up the code, write some unit tests, etc. before I am comfortable submitting it to LibreOffice.</div>
<div><br></div><div>I'll take a look at EmbeddedFontsHelper</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 27, 2013 at 8:25 AM, Lubos Lunak <span dir="ltr"><<a href="mailto:l.lunak@suse.cz" target="_blank">l.lunak@suse.cz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tuesday 27 of August 2013, Brennan T Vincent wrote:<br>
> Hi all,<br>
><br>
> One of the most commonly-occurring problems with .pub import is the fact<br>
> that we don't respect embedded fonts. Now that LibreOffice supports<br>
> embedded fonts, it should be possible to make this work.<br>
<br>
</div> That depends. EOT is a Microsoft proprietary font format (which has been<br>
submitted to W3C, but AFAICT pretty much everybody else ignores it). There<br>
are tools to convert e.g. TTF fonts to EOT, but I couldn't find absolutely<br>
anything that'd convert from EOT and the only thing capable of at least<br>
reading it is MS Windows itself. As far as I understand it, the available<br>
documentation on it is unsufficient for implementing a reader if you'd decide<br>
it'd be worth the effort (I'm not entirely sure on this part, feel free to do<br>
your own research).<br>
<br>
 Here are some links that I found on the topic:<br>
<br>
<a href="http://blog.yezhucn.com/gdi/t2embed_TTLoadEmbeddedFont.htm" target="_blank">http://blog.yezhucn.com/gdi/t2embed_TTLoadEmbeddedFont.htm</a><br>
<a href="http://www.pptfaq.com/FAQ00076_Embedding_fonts.htm" target="_blank">http://www.pptfaq.com/FAQ00076_Embedding_fonts.htm</a><br>
<br>
<a href="http://graphicdesign.stackexchange.com/questions/16234/are-there-any-free-tools-to-convert-eot-files-to-ttf-otf-or-any-other-font-f" target="_blank">http://graphicdesign.stackexchange.com/questions/16234/are-there-any-free-tools-to-convert-eot-files-to-ttf-otf-or-any-other-font-f</a><br>

<a href="http://www.w3.org/Submission/2008/SUBM-EOT-20080305/" target="_blank">http://www.w3.org/Submission/2008/SUBM-EOT-20080305/</a><br>
<a href="http://www.w3.org/Submission/2008/SUBM-MTX-20080305/" target="_blank">http://www.w3.org/Submission/2008/SUBM-MTX-20080305/</a><br>
<a href="http://lists.w3.org/Archives/Public/www-style/2008Apr/0227.html" target="_blank">http://lists.w3.org/Archives/Public/www-style/2008Apr/0227.html</a><br>
<a href="http://securitylabs.websense.com/content/Blogs/3114.aspx" target="_blank">http://securitylabs.websense.com/content/Blogs/3114.aspx</a><br>
<div class="im"><br>
> A few questions:<br>
><br>
> (1) Do we support Embedded OpenType fonts currently? (.eot)<br>
<br>
</div> No.<br>
<div class="im"><br>
> (2) If not (which I suspect), I can contribute some code to do this.<br>
> Microsoft and Monotype recently granted a perpetual, irrevocable free<br>
> patent and copyright license to implement the .eot format, so there should<br>
> be no legal issues. I have written a C library to convert from .eot to .ttf<br>
> and would like to know who to talk to in order to get this included in<br>
> LibreOffice.<br>
<br>
</div> Yes, adding support for export should be fairly easy, given that TTF->EOT<br>
conversion is possible, but that's the easier part and it doesn't really help<br>
LO much.<br>
<br>
 A kind of limited import support should be also doable, as the Windows<br>
TTLoadEmbeddedFont() function can load such a font for use (unlike the normal<br>
Windows function for opening fonts). See the attached hackish proof of<br>
concept patch. That'd make import of it Windows-only, unless you find a way<br>
to use EOT on other platforms. It'd also most probably require some changes<br>
in VCL's font handling, as I couldn't get the activated font listed among<br>
available fonts (which is what otherwise the current reading of embedded<br>
fonts does, it adds the new font temporarily in whichever way the underlying<br>
font system supports and then just uses it normally as if it was a system<br>
font).<br>
<br>
 There's a class EmbeddedFontsHelper in VCL that I created for handling<br>
embedded fonts, that should be the place to start if you want to give<br>
implementing this a try.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
 Lubos Lunak<br>
 <a href="mailto:l.lunak@suse.cz">l.lunak@suse.cz</a><br>
</font></span><br>_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
<br></blockquote></div><br></div>