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
224fd0a9
Kaydet (Commit)
224fd0a9
authored
May 21, 2014
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bin code that died in 2010 in
d4dbc311
Change-Id: I5b88b7c66c1c3a3c68e6a837d10e7477cb7ae8fe
üst
612e0c64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
36 deletions
+2
-36
font.cxx
vcl/source/outdev/font.cxx
+2
-36
No files found.
vcl/source/outdev/font.cxx
Dosyayı görüntüle @
224fd0a9
...
@@ -231,42 +231,8 @@ bool OutputDevice::GetFontCharMap( FontCharMap& rFontCharMap ) const
...
@@ -231,42 +231,8 @@ bool OutputDevice::GetFontCharMap( FontCharMap& rFontCharMap ) const
if
(
!
mpFontEntry
)
if
(
!
mpFontEntry
)
return
false
;
return
false
;
#ifdef ENABLE_IFC_CACHE // a little font charmap cache helps considerably
const
ImplFontCharMap
*
pNewMap
=
mpGraphics
->
GetImplFontCharMap
();
static
const
int
NMAXITEMS
=
16
;
rFontCharMap
.
Reset
(
pNewMap
);
static
int
nUsedItems
=
0
,
nCurItem
=
0
;
struct
CharMapCacheItem
{
const
PhysicalFontFace
*
mpFontData
;
FontCharMap
maCharMap
;
};
static
CharMapCacheItem
aCache
[
NMAXITEMS
];
const
PhysicalFontFace
*
pFontData
=
mpFontEntry
->
maFontSelData
.
mpFontData
;
int
i
;
for
(
i
=
nUsedItems
;
--
i
>=
0
;
)
if
(
pFontData
==
aCache
[
i
].
mpFontData
)
break
;
if
(
i
>=
0
)
// found in cache
{
rFontCharMap
.
Reset
(
aCache
[
i
].
maCharMap
.
mpImpl
);
}
else
// need to cache
#endif // ENABLE_IFC_CACHE
{
const
ImplFontCharMap
*
pNewMap
=
mpGraphics
->
GetImplFontCharMap
();
rFontCharMap
.
Reset
(
pNewMap
);
#ifdef ENABLE_IFC_CACHE
// manage cache round-robin and insert data
CharMapCacheItem
&
rItem
=
aCache
[
nCurItem
];
rItem
.
mpFontData
=
pFontData
;
rItem
.
maCharMap
.
Reset
(
pNewMap
);
if
(
++
nCurItem
>=
NMAXITEMS
)
nCurItem
=
0
;
if
(
++
nUsedItems
>=
NMAXITEMS
)
nUsedItems
=
NMAXITEMS
;
#endif // ENABLE_IFC_CACHE
}
if
(
rFontCharMap
.
IsDefaultMap
()
)
if
(
rFontCharMap
.
IsDefaultMap
()
)
return
false
;
return
false
;
...
...
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