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
198a775e
Kaydet (Commit)
198a775e
authored
Agu 12, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#82259 Show same preview for both Symbol variants
Change-Id: Iafabbe5068a1817b5be717018536e0d31117c434
üst
92f3e68c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
sampletext.cxx
svtools/source/misc/sampletext.cxx
+15
-0
No files found.
svtools/source/misc/sampletext.cxx
Dosyayı görüntüle @
198a775e
...
...
@@ -41,6 +41,7 @@ bool isSymbolFont(const Font &rFont)
rFont
.
GetName
().
equalsIgnoreAsciiCase
(
"MusiQwik"
)
||
rFont
.
GetName
().
equalsIgnoreAsciiCase
(
"MusiSync"
)
||
rFont
.
GetName
().
equalsIgnoreAsciiCase
(
"stmary10"
)
||
rFont
.
GetName
().
equalsIgnoreAsciiCase
(
"Symbol"
)
||
rFont
.
GetName
().
startsWith
(
"STIX"
)
||
isOpenSymbolFont
(
rFont
);
}
...
...
@@ -53,6 +54,20 @@ bool canRenderNameOfSelectedFont(OutputDevice &rDevice)
OUString
makeShortRepresentativeSymbolTextForSelectedFont
(
OutputDevice
&
rDevice
)
{
if
(
rDevice
.
GetFont
().
GetName
()
==
"Symbol"
)
{
static
const
sal_Unicode
aImplAppleSymbolText
[]
=
{
0x03BC
,
0x2202
,
0x2211
,
0x220F
,
0x03C0
,
0x222B
,
0x03A9
,
0x221A
,
0
};
OUString
sSampleText
(
aImplAppleSymbolText
);
bool
bHasSampleTextGlyphs
=
(
-
1
==
rDevice
.
HasGlyphs
(
rDevice
.
GetFont
(),
sSampleText
));
//It's the Apple version
if
(
bHasSampleTextGlyphs
)
return
OUString
(
aImplAppleSymbolText
);
static
const
sal_Unicode
aImplAdobeSymbolText
[]
=
{
0xF06D
,
0xF0B6
,
0xF0E5
,
0xF0D5
,
0xF070
,
0xF0F2
,
0xF057
,
0xF0D6
,
0
};
return
OUString
(
aImplAdobeSymbolText
);
}
const
bool
bOpenSymbol
=
isOpenSymbolFont
(
rDevice
.
GetFont
());
if
(
!
bOpenSymbol
)
...
...
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