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
0eb27ddf
Kaydet (Commit)
0eb27ddf
authored
Kas 26, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wunused-function
Change-Id: Id149af78312b205fbf14f0c2438dd4ad741f49ab
üst
6fc1efd5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
73 deletions
+0
-73
salgdi3.cxx
vcl/win/source/gdi/salgdi3.cxx
+0
-73
No files found.
vcl/win/source/gdi/salgdi3.cxx
Dosyayı görüntüle @
0eb27ddf
...
...
@@ -769,79 +769,6 @@ inline BYTE ImplPitchToWin( FontPitch ePitch )
return
DEFAULT_PITCH
;
}
static
ImplDevFontAttributes
WinFont2DevFontAttributes
(
const
ENUMLOGFONTEXA
&
rEnumFont
,
const
NEWTEXTMETRICA
&
rMetric
,
DWORD
nFontType
)
{
ImplDevFontAttributes
aDFA
;
const
LOGFONTA
rLogFont
=
rEnumFont
.
elfLogFont
;
// get font face attributes
aDFA
.
SetFamilyType
(
ImplFamilyToSal
(
rLogFont
.
lfPitchAndFamily
));
aDFA
.
SetWidthType
(
WIDTH_DONTKNOW
);
aDFA
.
SetWeight
(
ImplWeightToSal
(
rLogFont
.
lfWeight
));
aDFA
.
SetItalic
((
rLogFont
.
lfItalic
)
?
ITALIC_NORMAL
:
ITALIC_NONE
);
aDFA
.
SetPitch
(
ImplLogPitchToSal
(
rLogFont
.
lfPitchAndFamily
));
aDFA
.
SetSymbolFlag
(
rLogFont
.
lfCharSet
==
SYMBOL_CHARSET
);
// get the font face name
aDFA
.
SetFamilyName
(
ImplSalGetUniString
(
rLogFont
.
lfFaceName
));
// use the face's style name only if it looks reasonable
const
char
*
pStyleName
=
(
const
char
*
)
rEnumFont
.
elfStyle
;
const
char
*
pEnd
=
pStyleName
+
sizeof
(
rEnumFont
.
elfStyle
);
const
char
*
p
=
pStyleName
;
for
(;
*
p
&&
(
p
<
pEnd
);
++
p
)
if
(
(
0x00
<
*
p
)
&&
(
*
p
<
0x20
)
)
break
;
if
(
p
<
pEnd
)
aDFA
.
SetStyleName
(
ImplSalGetUniString
(
pStyleName
));
// get device specific font attributes
aDFA
.
mbOrientation
=
(
nFontType
&
RASTER_FONTTYPE
)
==
0
;
aDFA
.
mbDevice
=
(
rMetric
.
tmPitchAndFamily
&
TMPF_DEVICE
)
!=
0
;
aDFA
.
mbEmbeddable
=
false
;
aDFA
.
mbSubsettable
=
false
;
if
(
0
!=
(
rMetric
.
ntmFlags
&
(
NTM_TT_OPENTYPE
|
NTM_PS_OPENTYPE
))
||
0
!=
(
rMetric
.
tmPitchAndFamily
&
TMPF_TRUETYPE
))
aDFA
.
mbSubsettable
=
true
;
else
if
(
0
!=
(
rMetric
.
ntmFlags
&
NTM_TYPE1
)
)
// TODO: implement subsetting for type1 too
aDFA
.
mbEmbeddable
=
true
;
// heuristics for font quality
// - standard-type1 > opentypeTT > truetype > non-standard-type1 > raster
// - subsetting > embedding > none
aDFA
.
mnQuality
=
0
;
if
(
rMetric
.
tmPitchAndFamily
&
TMPF_TRUETYPE
)
aDFA
.
mnQuality
+=
50
;
if
(
0
!=
(
rMetric
.
ntmFlags
&
(
NTM_TT_OPENTYPE
|
NTM_PS_OPENTYPE
))
)
aDFA
.
mnQuality
+=
10
;
if
(
aDFA
.
mbSubsettable
)
aDFA
.
mnQuality
+=
200
;
else
if
(
aDFA
.
mbEmbeddable
)
aDFA
.
mnQuality
+=
100
;
// #i38665# prefer Type1 versions of the standard postscript fonts
if
(
aDFA
.
mbEmbeddable
)
{
if
(
aDFA
.
GetFamilyName
()
==
"AvantGarde"
||
aDFA
.
GetFamilyName
()
==
"Bookman"
||
aDFA
.
GetFamilyName
()
==
"Courier"
||
aDFA
.
GetFamilyName
()
==
"Helvetica"
||
aDFA
.
GetFamilyName
()
==
"NewCenturySchlbk"
||
aDFA
.
GetFamilyName
()
==
"Palatino"
||
aDFA
.
GetFamilyName
()
==
"Symbol"
||
aDFA
.
GetFamilyName
()
==
"Times"
||
aDFA
.
GetFamilyName
()
==
"ZapfChancery"
||
aDFA
.
GetFamilyName
()
==
"ZapfDingbats"
)
aDFA
.
mnQuality
+=
500
;
}
// TODO: add alias names
return
aDFA
;
}
static
ImplDevFontAttributes
WinFont2DevFontAttributes
(
const
ENUMLOGFONTEXW
&
rEnumFont
,
const
NEWTEXTMETRICW
&
rMetric
,
DWORD
nFontType
)
{
...
...
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