diff options
author | Kevin Suo <suokunlong@126.com> | 2021-07-17 14:25:45 +0800 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-26 08:28:20 +0200 |
commit | 2ee3d4076481262c1e3014dc9341cdf3d1922ff7 (patch) | |
tree | 138bcce95dd7f0c0577cf1622bd5c094a4858053 /sdext/source/pdfimport/xpdfwrapper | |
parent | 131759a3db51140c21594308ed99c71aa7aba43a (diff) |
sdext.pdfimport: Restore to read font file for the determination...
of font attributes, as suggested by Mike Kaganski in
https://gerrit.libreoffice.org/c/core/+/118977.
This partially reverts da59686672fd2bc98f8cb28d5f04dc978b50ac13
but did some modification of the previous code with some
explanationary comments.
Change-Id: I224d9e717bf374a90f4834cbd9e11bf1138b41ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119090
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/pdfimport/xpdfwrapper')
-rw-r--r-- | sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx index 9ffece584347..e33fde7d2682 100644 --- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx +++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx @@ -795,6 +795,11 @@ void PDFOutDev::updateFont(GfxState *state) aEsc.data() ); } printf( "\n" ); + + if (nEmbedSize) + { + writeFontFile(gfxFont); + } } void PDFOutDev::updateRender(GfxState *state) |