Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d0ebb70c
Kaydet (Commit)
d0ebb70c
authored
Eyl 10, 2013
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i123216 No FontScaling by WorldTransform on WMF import
üst
f5c3f1a0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
12 deletions
+29
-12
enhwmf.cxx
svtools/source/filter/wmf/enhwmf.cxx
+12
-8
winmtf.cxx
svtools/source/filter/wmf/winmtf.cxx
+9
-4
winmtf.hxx
svtools/source/filter/wmf/winmtf.hxx
+1
-0
wmf.cxx
svtools/source/filter/wmf/wmf.cxx
+7
-0
No files found.
svtools/source/filter/wmf/enhwmf.cxx
Dosyayı görüntüle @
d0ebb70c
...
...
@@ -1023,14 +1023,18 @@ sal_Bool EnhWMFReader::ReadEnhWMF()
}
aLogFont
.
alfFaceName
=
UniString
(
lfFaceName
);
// #121382# Need to apply WorldTransform to FontHeight/Width; this should be completely
// chnaged to basegfx::B2DHomMatrix instead of 'struct XForm', but not now due to time
// constraints and dangers
const
XForm
&
rXF
=
pOut
->
GetWorldTransform
();
const
basegfx
::
B2DHomMatrix
aWT
(
rXF
.
eM11
,
rXF
.
eM21
,
rXF
.
eDx
,
rXF
.
eM12
,
rXF
.
eM22
,
rXF
.
eDy
);
const
basegfx
::
B2DVector
aTransVec
(
aWT
*
basegfx
::
B2DVector
(
aLogFont
.
lfWidth
,
aLogFont
.
lfHeight
));
aLogFont
.
lfWidth
=
aTransVec
.
getX
();
aLogFont
.
lfHeight
=
aTransVec
.
getY
();
// #123216# Not used in the test case of #121382# (always identity in XForm), also
// no hints in ms docu if FontSize should be scaled with WT. Using with the example
// from #123216# creates errors, so removing.
//
// // #121382# Need to apply WorldTransform to FontHeight/Width; this should be completely
// // chnaged to basegfx::B2DHomMatrix instead of 'struct XForm', but not now due to time
// // constraints and dangers
// const XForm& rXF = pOut->GetWorldTransform();
// const basegfx::B2DHomMatrix aWT(rXF.eM11, rXF.eM21, rXF.eDx, rXF.eM12, rXF.eM22, rXF.eDy);
// const basegfx::B2DVector aTransVec(aWT * basegfx::B2DVector(aLogFont.lfWidth, aLogFont.lfHeight));
// aLogFont.lfWidth = aTransVec.getX();
// aLogFont.lfHeight = aTransVec.getY();
pOut
->
CreateObject
(
nIndex
,
GDI_FONT
,
new
WinMtfFontStyle
(
aLogFont
)
);
}
...
...
svtools/source/filter/wmf/winmtf.cxx
Dosyayı görüntüle @
d0ebb70c
...
...
@@ -2055,10 +2055,10 @@ void WinMtfOutput::ModifyWorldTransform( const XForm& rXForm, sal_uInt32 nMode )
{
case
MWT_IDENTITY
:
{
maXForm
.
eM11
=
maXForm
.
eM12
=
maXForm
.
eM21
=
maXForm
.
eM22
=
1.0
f
;
maXForm
.
eDx
=
maXForm
.
eDy
=
0.0
f
;
maXForm
.
eM11
=
maXForm
.
eM22
=
1.0
f
;
maXForm
.
eM12
=
maXForm
.
eM21
=
maXForm
.
eDx
=
maXForm
.
eDy
=
0.0
f
;
break
;
}
break
;
case
MWT_RIGHTMULTIPLY
:
case
MWT_LEFTMULTIPLY
:
...
...
@@ -2117,8 +2117,13 @@ void WinMtfOutput::ModifyWorldTransform( const XForm& rXForm, sal_uInt32 nMode )
maXForm
.
eM22
=
cF
[
1
][
1
];
maXForm
.
eDx
=
cF
[
2
][
0
];
maXForm
.
eDy
=
cF
[
2
][
1
];
break
;
}
case
MWT_SET
:
{
SetWorldTransform
(
rXForm
);
break
;
}
break
;
}
}
...
...
svtools/source/filter/wmf/winmtf.hxx
Dosyayı görüntüle @
d0ebb70c
...
...
@@ -68,6 +68,7 @@
#define MWT_IDENTITY 1
#define MWT_LEFTMULTIPLY 2
#define MWT_RIGHTMULTIPLY 3
#define MWT_SET 4
#define ENHMETA_STOCK_OBJECT 0x80000000
...
...
svtools/source/filter/wmf/wmf.cxx
Dosyayı görüntüle @
d0ebb70c
...
...
@@ -50,6 +50,13 @@ sal_Bool ConvertWMFToGDIMetaFile( SvStream & rStreamWMF, GDIMetaFile & rGDIMetaF
{
WMFReader
(
rStreamWMF
,
rGDIMetaFile
,
pConfigItem
).
ReadWMF
();
}
#ifdef DBG_UTIL
// #123216# allow a look at CheckSum and ByteSize for debugging
const
sal_uLong
aC
(
rGDIMetaFile
.
GetChecksum
());
const
sal_uLong
aB
(
rGDIMetaFile
.
GetSizeBytes
());
#endif
rStreamWMF
.
SetNumberFormatInt
(
nOrigNumberFormat
);
return
!
rStreamWMF
.
GetError
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment