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
e2260726
Kaydet (Commit)
e2260726
authored
Ock 16, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Same expression on both sides of '-'
üst
27951fd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
fontconfig.cxx
vcl/generic/fontmanager/fontconfig.cxx
+8
-8
No files found.
vcl/generic/fontmanager/fontconfig.cxx
Dosyayı görüntüle @
e2260726
...
...
@@ -165,13 +165,13 @@ namespace
{
FcChar8
*
pNameA
=
NULL
,
*
pNameB
=
NULL
;
bool
b
HaveA
=
FcPatternGetString
(
a
,
FC_FAMILY
,
0
,
&
pNameA
)
==
FcResultMatch
;
bool
b
HaveB
=
FcPatternGetString
(
b
,
FC_FAMILY
,
0
,
&
pNameB
)
==
FcResultMatch
;
int
n
HaveA
=
FcPatternGetString
(
a
,
FC_FAMILY
,
0
,
&
pNameA
)
==
FcResultMatch
;
int
n
HaveB
=
FcPatternGetString
(
b
,
FC_FAMILY
,
0
,
&
pNameB
)
==
FcResultMatch
;
if
(
bHaveA
&&
b
HaveB
)
if
(
nHaveA
&&
n
HaveB
)
return
strcmp
((
const
char
*
)
pNameA
,
(
const
char
*
)
pNameB
);
return
bHaveA
-
b
HaveB
;
return
nHaveA
-
n
HaveB
;
}
//Sort fonts so that fonts with the same family name are side-by-side, with
...
...
@@ -187,13 +187,13 @@ namespace
int
nVersionA
=
0
,
nVersionB
=
0
;
bool
b
HaveA
=
FcPatternGetInteger
(
a
,
FC_FONTVERSION
,
0
,
&
nVersionA
)
==
FcResultMatch
;
bool
b
HaveB
=
FcPatternGetInteger
(
b
,
FC_FONTVERSION
,
0
,
&
nVersionB
)
==
FcResultMatch
;
int
n
HaveA
=
FcPatternGetInteger
(
a
,
FC_FONTVERSION
,
0
,
&
nVersionA
)
==
FcResultMatch
;
int
n
HaveB
=
FcPatternGetInteger
(
b
,
FC_FONTVERSION
,
0
,
&
nVersionB
)
==
FcResultMatch
;
if
(
bHaveA
&&
b
HaveB
)
if
(
nHaveA
&&
n
HaveB
)
return
nVersionA
>
nVersionB
;
return
bHaveA
-
bHaveA
;
return
nHaveA
>
nHaveB
;
}
};
...
...
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