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
ba369045
Kaydet (Commit)
ba369045
authored
Kas 25, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: SalEnumFontsProcExA is unused since 2010
Change-Id: Id1b1de27752a6b8a74ea3521b53c38f032bfa24b
üst
4fee13c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
70 deletions
+0
-70
salgdi3.cxx
vcl/win/source/gdi/salgdi3.cxx
+0
-70
No files found.
vcl/win/source/gdi/salgdi3.cxx
Dosyayı görüntüle @
ba369045
...
...
@@ -915,22 +915,6 @@ static ImplDevFontAttributes WinFont2DevFontAttributes( const ENUMLOGFONTEXW& rE
return
aDFA
;
}
static
ImplWinFontData
*
ImplLogMetricToDevFontDataA
(
const
ENUMLOGFONTEXA
*
pLogFont
,
const
NEWTEXTMETRICA
*
pMetric
,
DWORD
nFontType
)
{
int
nHeight
=
0
;
if
(
nFontType
&
RASTER_FONTTYPE
)
nHeight
=
pMetric
->
tmHeight
-
pMetric
->
tmInternalLeading
;
ImplWinFontData
*
pData
=
new
ImplWinFontData
(
WinFont2DevFontAttributes
(
*
pLogFont
,
*
pMetric
,
nFontType
),
nHeight
,
pLogFont
->
elfLogFont
.
lfCharSet
,
pMetric
->
tmPitchAndFamily
);
return
pData
;
}
static
ImplWinFontData
*
ImplLogMetricToDevFontDataW
(
const
ENUMLOGFONTEXW
*
pLogFont
,
const
NEWTEXTMETRICW
*
pMetric
,
...
...
@@ -1662,60 +1646,6 @@ bool WinSalGraphics::GetFontCapabilities(vcl::FontCapabilities &rFontCapabilitie
return
mpWinFontData
[
0
]
->
GetFontCapabilities
(
rFontCapabilities
);
}
int
CALLBACK
SalEnumFontsProcExA
(
const
ENUMLOGFONTEXA
*
pLogFont
,
const
NEWTEXTMETRICEXA
*
pMetric
,
DWORD
nFontType
,
LPARAM
lParam
)
{
ImplEnumInfo
*
pInfo
=
(
ImplEnumInfo
*
)(
void
*
)
lParam
;
if
(
!
pInfo
->
mpName
)
{
// Ignore vertical fonts
if
(
pLogFont
->
elfLogFont
.
lfFaceName
[
0
]
!=
'@'
)
{
if
(
!
pInfo
->
mbImplSalCourierNew
)
pInfo
->
mbImplSalCourierNew
=
stricmp
(
pLogFont
->
elfLogFont
.
lfFaceName
,
"Courier New"
)
==
0
;
if
(
!
pInfo
->
mbImplSalCourierScalable
)
pInfo
->
mbCourier
=
stricmp
(
pLogFont
->
elfLogFont
.
lfFaceName
,
"Courier"
)
==
0
;
else
pInfo
->
mbCourier
=
FALSE
;
OUString
aName
(
ImplSalGetUniString
(
pLogFont
->
elfLogFont
.
lfFaceName
)
);
pInfo
->
mpName
=
&
aName
;
strncpy
(
pInfo
->
mpLogFontA
->
lfFaceName
,
pLogFont
->
elfLogFont
.
lfFaceName
,
LF_FACESIZE
);
pInfo
->
mpLogFontA
->
lfCharSet
=
pLogFont
->
elfLogFont
.
lfCharSet
;
EnumFontFamiliesExA
(
pInfo
->
mhDC
,
pInfo
->
mpLogFontA
,
(
FONTENUMPROCA
)
SalEnumFontsProcExA
,
(
LPARAM
)(
void
*
)
pInfo
,
0
);
pInfo
->
mpLogFontA
->
lfFaceName
[
0
]
=
'\0'
;
pInfo
->
mpLogFontA
->
lfCharSet
=
DEFAULT_CHARSET
;
pInfo
->
mpName
=
NULL
;
pInfo
->
mbCourier
=
FALSE
;
}
}
else
{
// ignore non-scalable non-device font on printer
if
(
pInfo
->
mbPrinter
)
if
(
(
nFontType
&
RASTER_FONTTYPE
)
&&
!
(
nFontType
&
DEVICE_FONTTYPE
)
)
return
1
;
ImplWinFontData
*
pData
=
ImplLogMetricToDevFontDataA
(
pLogFont
,
&
(
pMetric
->
ntmTm
),
nFontType
);
pData
->
SetFontId
(
sal_IntPtr
(
pInfo
->
mnFontCount
++
)
);
// prefer the system character set, so that we get as much as
// possible important characters. In the other case we could only
// display a limited set of characters (#87309#)
if
(
pInfo
->
mnPreferredCharSet
==
pLogFont
->
elfLogFont
.
lfCharSet
)
pData
->
mnQuality
+=
100
;
// knowing Courier to be scalable is nice
if
(
pInfo
->
mbCourier
)
pInfo
->
mbImplSalCourierScalable
|=
pData
->
IsScalable
();
pInfo
->
mpList
->
Add
(
pData
);
}
return
1
;
}
int
CALLBACK
SalEnumFontsProcExW
(
const
ENUMLOGFONTEXW
*
pLogFont
,
const
NEWTEXTMETRICEXW
*
pMetric
,
DWORD
nFontType
,
LPARAM
lParam
)
...
...
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