diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 21:11:21 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-27 10:45:20 +0000 |
commit | dbf15c904425a4358b3c930ddff4c01982138ef6 (patch) | |
tree | 57de99f5646b5f1a62b9e053640551898d562773 /vcl/headless | |
parent | 7f0dcdfd22f90e2697d8858558b66174bd64ae34 (diff) |
add a length arg to GetEmbedFontData
for the cases where we don't want the full result
and mark some ultra-dubious code with a TODO
Change-Id: I7cf57b8d44bbad2a6db86a8b862a757ae5062c50
Reviewed-on: https://gerrit.libreoffice.org/14189
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svptext.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/headless/svptext.cxx b/vcl/headless/svptext.cxx index 8fc51ced7ddb..84a35e103325 100644 --- a/vcl/headless/svptext.cxx +++ b/vcl/headless/svptext.cxx @@ -336,6 +336,7 @@ const void* SvpSalGraphics::GetEmbedFontData( const PhysicalFontFace* pFont, const sal_Ucs* pUnicodes, sal_Int32* pWidths, + size_t nLen, FontSubsetInfo& rInfo, long* pDataLen ) @@ -346,7 +347,7 @@ const void* SvpSalGraphics::GetEmbedFontData( // which this method was created). The correct way would // be to have the GlyphCache search for the PhysicalFontFace pFont psp::fontID aFont = pFont->GetFontId(); - return GenPspGraphics::DoGetEmbedFontData( aFont, pUnicodes, pWidths, rInfo, pDataLen ); + return GenPspGraphics::DoGetEmbedFontData( aFont, pUnicodes, pWidths, nLen, rInfo, pDataLen ); } void SvpSalGraphics::FreeEmbedFontData( const void* pData, long nLen ) |