diff options
author | David Tardon <dtardon@redhat.com> | 2013-12-01 09:02:13 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-12-01 09:02:18 +0100 |
commit | 0f4be588622379388650d8fc451829d17d16a7bf (patch) | |
tree | 28357734bff5209f9b7270d23b730d0f01201fae /vcl/source/gdi/embeddedfontshelper.cxx | |
parent | fc65f952d794c96c630842f61b1c9a22c4bb23ec (diff) |
upload libeot-0.01
Change-Id: I877cab5e13ebb52911b2e238a0f4ebb87cda73e9
Diffstat (limited to 'vcl/source/gdi/embeddedfontshelper.cxx')
-rw-r--r-- | vcl/source/gdi/embeddedfontshelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/embeddedfontshelper.cxx b/vcl/source/gdi/embeddedfontshelper.cxx index 56611d2897b8..9d890177a2de 100644 --- a/vcl/source/gdi/embeddedfontshelper.cxx +++ b/vcl/source/gdi/embeddedfontshelper.cxx @@ -31,7 +31,7 @@ extern "C" { namespace libeot { -#include <libeot.h> +#include <libeot/libeot.h> } // namespace libeot } // extern "C" #endif @@ -114,8 +114,8 @@ bool EmbeddedFontsHelper::addEmbeddedFont( uno::Reference< io::XInputStream > st unsigned char *nakedPointerToUncompressedFont = NULL; libeot::EOTMetadata eotMetadata; libeot::EOTError uncompressError = - libeot::eot2ttf_buffer( (const unsigned char *)&fontData[0], fontData.size(), &eotMetadata, &nakedPointerToUncompressedFont, &uncompressedFontSize ); - boost::shared_ptr<unsigned char> uncompressedFont( nakedPointerToUncompressedFont, libeot::freeEOTBuffer ); + libeot::EOT2ttf_buffer( (const unsigned char *)&fontData[0], fontData.size(), &eotMetadata, &nakedPointerToUncompressedFont, &uncompressedFontSize ); + boost::shared_ptr<unsigned char> uncompressedFont( nakedPointerToUncompressedFont, libeot::EOTfreeBuffer ); if( uncompressError != libeot::EOT_SUCCESS ) { SAL_WARN( "vcl.fonts", "Failed to uncompress font" ); @@ -134,7 +134,7 @@ bool EmbeddedFontsHelper::addEmbeddedFont( uno::Reference< io::XInputStream > st } writtenTotal += written; } - sufficientFontRights = libeot::canLegallyEdit( &eotMetadata ); + sufficientFontRights = libeot::EOTcanLegallyEdit( &eotMetadata ); libeot::EOTfreeMetadata( &eotMetadata ); } #endif |