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
95cb8d2c
Kaydet (Commit)
95cb8d2c
authored
Ock 24, 2011
tarafından
Thomas Arnhold
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove FONT_TEST_DEBUG, COMING_SOON and some more dead code.
üst
4fd8c28f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
54 deletions
+3
-54
fntcache.cxx
sw/source/core/txtnode/fntcache.cxx
+3
-54
No files found.
sw/source/core/txtnode/fntcache.cxx
Dosyayı görüntüle @
95cb8d2c
...
@@ -1450,21 +1450,8 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
...
@@ -1450,21 +1450,8 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
}
}
else
else
{
{
// BOOL bRestore = FALSE;
// MapMode aOld( rInf.GetOut().GetMapMode() );
// if( rInf.GetZoom().GetNumerator() &&
// rInf.GetZoom() != aOld.GetScaleX() )
// {
// MapMode aNew( aOld );
// aNew.SetScaleX( rInf.GetZoom() );
// aNew.SetScaleY( rInf.GetZoom() );
// rInf.GetOut().SetMapMode( aNew );
// bRestore = TRUE;
// }
rInf
.
GetOut
().
GetTextArray
(
rInf
.
GetText
(),
pKernArray
,
rInf
.
GetOut
().
GetTextArray
(
rInf
.
GetText
(),
pKernArray
,
rInf
.
GetIdx
(),
rInf
.
GetLen
()
);
rInf
.
GetIdx
(),
rInf
.
GetLen
()
);
// if( bRestore )
// rInf.GetOut().SetMapMode( aOld );
}
}
//
//
...
@@ -1637,11 +1624,8 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
...
@@ -1637,11 +1624,8 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
// linksbuendig zur Druckerposition.
// linksbuendig zur Druckerposition.
if
(
nCh
==
CH_BLANK
)
if
(
nCh
==
CH_BLANK
)
{
{
#ifdef FONT_TEST_DEBUG
lcl_Pos
(
3
,
nScrPos
,
nScr
,
pKernArray
[
i
-
1
],
pKernArray
[
i
]
);
#else
nScrPos
=
pKernArray
[
i
-
1
]
+
nScr
;
nScrPos
=
pKernArray
[
i
-
1
]
+
nScr
;
#endif
if
(
cChPrev
==
CH_BLANK
)
if
(
cChPrev
==
CH_BLANK
)
nSpaceSum
+=
nOtherHalf
;
nSpaceSum
+=
nOtherHalf
;
if
(
i
+
1
==
nCnt
)
if
(
i
+
1
==
nCnt
)
...
@@ -1653,28 +1637,17 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
...
@@ -1653,28 +1637,17 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
{
{
if
(
cChPrev
==
CH_BLANK
)
if
(
cChPrev
==
CH_BLANK
)
{
{
#ifdef FONT_TEST_DEBUG
lcl_Pos
(
6
,
nScrPos
,
nScr
,
pKernArray
[
i
-
1
],
pKernArray
[
i
]
);
#else
nScrPos
=
pKernArray
[
i
-
1
]
+
nScr
;
nScrPos
=
pKernArray
[
i
-
1
]
+
nScr
;
#endif
// kein Pixel geht verloren:
// kein Pixel geht verloren:
nSpaceSum
+=
nOtherHalf
;
nSpaceSum
+=
nOtherHalf
;
}
}
else
if
(
cChPrev
==
'-'
)
else
if
(
cChPrev
==
'-'
)
#ifdef FONT_TEST_DEBUG
lcl_Pos
(
6
,
nScrPos
,
nScr
,
pKernArray
[
i
-
1
],
pKernArray
[
i
]
);
#else
nScrPos
=
pKernArray
[
i
-
1
]
+
nScr
;
nScrPos
=
pKernArray
[
i
-
1
]
+
nScr
;
#endif
else
else
{
{
#ifdef FONT_TEST_DEBUG
lcl_Pos
(
0
,
nScrPos
,
nScr
,
pKernArray
[
i
-
1
],
pKernArray
[
i
]
);
#else
nScrPos
+=
nScr
;
nScrPos
+=
nScr
;
nScrPos
=
(
nMul
*
nScrPos
+
pKernArray
[
i
]
)
/
nDiv
;
nScrPos
=
(
nMul
*
nScrPos
+
pKernArray
[
i
]
)
/
nDiv
;
#endif
}
}
}
}
cChPrev
=
nCh
;
cChPrev
=
nCh
;
...
@@ -1786,31 +1759,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
...
@@ -1786,31 +1759,7 @@ void SwFntObj::DrawText( SwDrawTextInfo &rInf )
xub_StrLen
nOffs
=
0
;
xub_StrLen
nOffs
=
0
;
xub_StrLen
nLen
=
rInf
.
GetLen
();
xub_StrLen
nLen
=
rInf
.
GetLen
();
#ifdef COMING_SOON
if
(
aPos
.
X
()
<
rInf
.
GetLeft
()
)
{
while
(
nOffs
<
nLen
&&
aPos
.
X
()
+
pKernArray
[
nOffs
]
<
rInf
.
GetLeft
()
)
++
nOffs
;
if
(
nOffs
<
nLen
)
{
--
nLen
;
while
(
nLen
>
nOffs
&&
aPos
.
X
()
+
pKernArray
[
nLen
]
>
rInf
.
GetRight
()
)
--
nLen
;
++
nLen
;
if
(
nOffs
)
--
nOffs
;
}
if
(
nOffs
)
{
long
nDiff
=
pKernArray
[
nOffs
-
1
];
aPos
.
X
()
+=
nDiff
;
for
(
xub_StrLen
nX
=
nOffs
;
nX
<
nLen
;
++
nX
)
pKernArray
[
nX
]
-=
nDiff
;
}
}
#endif
if
(
nOffs
<
nLen
)
if
(
nOffs
<
nLen
)
{
{
// If we paint bullets instead of spaces, we use a copy of
// If we paint bullets instead of spaces, we use a copy of
...
...
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