summaryrefslogtreecommitdiff
path: root/include/vcl/printerinfomanager.hxx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-11-26 16:37:16 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-12-04 04:59:47 -0600
commit24657548a71355e1a087b87d725647793785daa9 (patch)
tree19995e7809e75e0f592efb8511b467bd7108d942 /include/vcl/printerinfomanager.hxx
parent6230cdd2d8971147dcb629c8bd61daa1fefcb7c7 (diff)
Don't perform printer font substitution
The so called printer resident fonts is a relic of a bygone era, when life was simple and there was only ASCII and Type1 fonts. It is just broken by design these days, offers nothing useful and can go wrong in many ways. Since 1f3a91cf2ace315fb332c0149808a2433eb9ae71 this "feature" is disabled by default anyway, so scrap this code to make room for some long due cleanup. Change-Id: Id124b2cad1a484099701a885c4d96e6a12af8d9a Reviewed-on: https://gerrit.libreoffice.org/6858 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/printerinfomanager.hxx')
-rw-r--r--include/vcl/printerinfomanager.hxx21
1 files changed, 1 insertions, 20 deletions
diff --git a/include/vcl/printerinfomanager.hxx b/include/vcl/printerinfomanager.hxx
index 96e784689483..b431fadb409b 100644
--- a/include/vcl/printerinfomanager.hxx
+++ b/include/vcl/printerinfomanager.hxx
@@ -50,24 +50,9 @@ struct PrinterInfo : JobData
// a list of special features separated by ',' not used by psprint
// but assigned from the outside (currently for "fax","pdf=","autoqueue","external_dialog")
OUString m_aFeatures;
- // a mapping of fonts to other fonts.
- // this provides a method for the user
- // to replace arbitrary fonts by printer builtin fonts
- // currently this is only a mapping between font names
- // assuming that only adbobe standard encoding fonts are
- // built into the printer. in future it may be necessary
- // to map to a font name and UCS2 vector which should be mapped
- // this vector is currently implicitly given by the adobe
- // standard encoding
- bool m_bPerformFontSubstitution;
- boost::unordered_map< OUString, OUString, OUStringHash >
- m_aFontSubstitutes;
- boost::unordered_map< fontID, fontID >
- m_aFontSubstitutions;
PrinterInfo() :
- JobData(),
- m_bPerformFontSubstitution( false )
+ JobData()
{}
};
@@ -133,10 +118,6 @@ protected:
virtual void initialize();
- // fill in font substitutions
- // the resulting boost::unordered_map maps from source to target font ids
- void fillFontSubstitutions( PrinterInfo& rInfo ) const;
-
// fill default paper if not configured in config file
// default paper is e.g. locale dependent
// if a paper is already set it will not be overwritten