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
0208dc3b
Kaydet (Commit)
0208dc3b
authored
Agu 21, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more tweaks for config-less load path
Change-Id: I642de3af09231dd3fcdbd0b56ecb2c6a3c1e9c49
üst
14a21956
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
18 deletions
+22
-18
PhysicalFontCollection.cxx
vcl/source/font/PhysicalFontCollection.cxx
+22
-18
No files found.
vcl/source/font/PhysicalFontCollection.cxx
Dosyayı görüntüle @
0208dc3b
...
@@ -902,28 +902,32 @@ PhysicalFontFamily* PhysicalFontCollection::FindDefaultFont() const
...
@@ -902,28 +902,32 @@ PhysicalFontFamily* PhysicalFontCollection::FindDefaultFont() const
{
{
// try to find one of the default fonts of the
// try to find one of the default fonts of the
// UNICODE, SANSSERIF, SERIF or FIXED default font lists
// UNICODE, SANSSERIF, SERIF or FIXED default font lists
const
utl
::
DefaultFontConfiguration
&
rDefaults
=
utl
::
DefaultFontConfiguration
::
get
();
PhysicalFontFamily
*
pFoundData
=
nullptr
;
LanguageTag
aLanguageTag
(
OUString
(
"en"
));
if
(
!
utl
::
ConfigManager
::
IsAvoidConfig
())
OUString
aFontname
=
rDefaults
.
getDefaultFont
(
aLanguageTag
,
DefaultFontType
::
SANS_UNICODE
);
{
PhysicalFontFamily
*
pFoundData
=
ImplFindByTokenNames
(
aFontname
);
const
utl
::
DefaultFontConfiguration
&
rDefaults
=
utl
::
DefaultFontConfiguration
::
get
();
LanguageTag
aLanguageTag
(
OUString
(
"en"
));
OUString
aFontname
=
rDefaults
.
getDefaultFont
(
aLanguageTag
,
DefaultFontType
::
SANS_UNICODE
);
pFoundData
=
ImplFindByTokenNames
(
aFontname
);
if
(
pFoundData
)
if
(
pFoundData
)
return
pFoundData
;
return
pFoundData
;
aFontname
=
rDefaults
.
getDefaultFont
(
aLanguageTag
,
DefaultFontType
::
SANS
);
aFontname
=
rDefaults
.
getDefaultFont
(
aLanguageTag
,
DefaultFontType
::
SANS
);
pFoundData
=
ImplFindByTokenNames
(
aFontname
);
pFoundData
=
ImplFindByTokenNames
(
aFontname
);
if
(
pFoundData
)
if
(
pFoundData
)
return
pFoundData
;
return
pFoundData
;
aFontname
=
rDefaults
.
getDefaultFont
(
aLanguageTag
,
DefaultFontType
::
SERIF
);
aFontname
=
rDefaults
.
getDefaultFont
(
aLanguageTag
,
DefaultFontType
::
SERIF
);
pFoundData
=
ImplFindByTokenNames
(
aFontname
);
pFoundData
=
ImplFindByTokenNames
(
aFontname
);
if
(
pFoundData
)
if
(
pFoundData
)
return
pFoundData
;
return
pFoundData
;
aFontname
=
rDefaults
.
getDefaultFont
(
aLanguageTag
,
DefaultFontType
::
FIXED
);
aFontname
=
rDefaults
.
getDefaultFont
(
aLanguageTag
,
DefaultFontType
::
FIXED
);
pFoundData
=
ImplFindByTokenNames
(
aFontname
);
pFoundData
=
ImplFindByTokenNames
(
aFontname
);
if
(
pFoundData
)
if
(
pFoundData
)
return
pFoundData
;
return
pFoundData
;
}
// now try to find a reasonable non-symbol font
// now try to find a reasonable non-symbol font
...
...
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