summaryrefslogtreecommitdiff
path: root/vcl/unx/source/gdi/pspgraphics.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-03-29 10:28:09 +0000
committerOliver Bolte <obo@openoffice.org>2006-03-29 10:28:09 +0000
commitd1c24d80ff35445d532a3d462feb0e7aa8c26219 (patch)
tree692f9cc6a6033cd5ec76abaede736aaccb39b2e7 /vcl/unx/source/gdi/pspgraphics.cxx
parentb1be9bea1222f241f90d52ee753246cdaa543edd (diff)
INTEGRATION: CWS vcl54 (1.13.88); FILE MERGED
2006/02/16 13:28:43 pl 1.13.88.1: #61841# add fontconfig support for embedded bitmaps and antialias
Diffstat (limited to 'vcl/unx/source/gdi/pspgraphics.cxx')
-rw-r--r--vcl/unx/source/gdi/pspgraphics.cxx30
1 files changed, 28 insertions, 2 deletions
diff --git a/vcl/unx/source/gdi/pspgraphics.cxx b/vcl/unx/source/gdi/pspgraphics.cxx
index 2277b5ea65d2..8d585359f78f 100644
--- a/vcl/unx/source/gdi/pspgraphics.cxx
+++ b/vcl/unx/source/gdi/pspgraphics.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: pspgraphics.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: obo $ $Date: 2006-03-22 15:19:19 $
+ * last change: $Author: obo $ $Date: 2006-03-29 11:28:09 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1230,6 +1230,32 @@ ImplDevFontAttributes PspGraphics::Info2DevFontAttributes( const psp::FastPrintF
aDFA.mePitch = ToFontPitch (rInfo.m_ePitch);
aDFA.mbSymbolFlag = (rInfo.m_aEncoding == RTL_TEXTENCODING_SYMBOL);
+ switch (rInfo.m_eEmbeddedbitmap)
+ {
+ default:
+ aDFA.meEmbeddedBitmap = EMBEDDEDBITMAP_DONTKNOW;
+ break;
+ case psp::fcstatus::istrue:
+ aDFA.meEmbeddedBitmap = EMBEDDEDBITMAP_TRUE;
+ break;
+ case psp::fcstatus::isfalse:
+ aDFA.meEmbeddedBitmap = EMBEDDEDBITMAP_FALSE;
+ break;
+ }
+
+ switch (rInfo.m_eAntialias)
+ {
+ default:
+ aDFA.meAntiAlias = ANTIALIAS_DONTKNOW;
+ break;
+ case psp::fcstatus::istrue:
+ aDFA.meAntiAlias = ANTIALIAS_TRUE;
+ break;
+ case psp::fcstatus::isfalse:
+ aDFA.meAntiAlias = ANTIALIAS_FALSE;
+ break;
+ }
+
// special case for the ghostscript fonts
if( aDFA.maName.CompareIgnoreCaseToAscii( "itc ", 4 ) == COMPARE_EQUAL )
aDFA.maName = aDFA.maName.Copy( 4 );