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
e0be487a
Kaydet (Commit)
e0be487a
authored
Eyl 12, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#82259 various "* MN" fonts incorrectly claim to support TAMIL
Change-Id: Ie1f21052ff09fcf243a3cc0839cf7118efa09c68
üst
3202c445
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
3 deletions
+52
-3
sampletext.cxx
svtools/source/misc/sampletext.cxx
+52
-3
No files found.
svtools/source/misc/sampletext.cxx
Dosyayı görüntüle @
e0be487a
...
...
@@ -18,11 +18,60 @@
// that caused it to be added
static
UScriptCode
lcl_getHardCodedScriptNameForFont
(
const
OutputDevice
&
rDevice
)
{
// As of OSX 10.9, the system font "GB18030 Bitmap" incorrectly declares
// that it only covers "Phoenician" when in fact it's a Chinese font.
if
(
rDevice
.
GetFont
().
GetName
().
equalsIgnoreAsciiCase
(
"GB18030 Bitmap"
))
{
const
OUString
&
rName
=
rDevice
.
GetFont
().
GetName
();
if
(
rName
==
"GB18030 Bitmap"
)
{
// As of OSX 10.9, the system font "GB18030 Bitmap" incorrectly declares
// that it only covers "Phoenician" when in fact it's a Chinese font.
return
USCRIPT_HAN
;
}
else
if
(
rName
.
startsWith
(
"Bangla "
))
{
// "Bangla Sangam MN" claims it supports MALAYALAM, but it doesn't
// "Bangla MN" claims just DEVANAGARI and not an additional BENGALI
return
USCRIPT_BENGALI
;
}
else
if
(
rName
.
startsWith
(
"Gurmukhi "
))
{
// "Gurmukhi MN" claims it supports TAMIL, but it doesn't
return
USCRIPT_GURMUKHI
;
}
else
if
(
rName
.
startsWith
(
"Kannada "
))
{
// "Kannada MN" claims it supports TAMIL, but it doesn't
return
USCRIPT_KANNADA
;
}
else
if
(
rName
.
startsWith
(
"Lao "
))
{
// "Lao Sangam MN" claims it supports TAMIL, but it doesn't
return
USCRIPT_LAO
;
}
else
if
(
rName
.
startsWith
(
"Malayalam "
))
{
// "Malayalam MN" claims it supports TAMIL, but it doesn't
return
USCRIPT_LAO
;
}
else
if
(
rName
.
startsWith
(
"Sinhala "
))
{
// "Sinhala MN" claims it supports CYRILLIC
return
USCRIPT_SINHALA
;
}
else
if
(
rName
.
startsWith
(
"Telugu "
))
{
// "Telugu MN" claims it supports TAMIL, but it doesn't
return
USCRIPT_TELUGU
;
}
else
if
(
rName
.
startsWith
(
"Myanmar "
))
{
return
USCRIPT_MYANMAR
;
}
else
if
(
rName
==
"InaiMathi"
)
{
// "InaiMathi" claims it supports GOTHIC and CJK_UNIFIED_IDEOGRAPHS as well as
// TAMIL, but it doesn't
return
USCRIPT_TAMIL
;
}
return
USCRIPT_INVALID_CODE
;
}
...
...
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