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
678b260c
Kaydet (Commit)
678b260c
authored
Eki 21, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
some windows only Strings
Change-Id: I264bdfc3453e2b6a17397ffb27154a29394c8c1b
üst
1ba10fb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
salgdi3.cxx
vcl/win/source/gdi/salgdi3.cxx
+8
-6
No files found.
vcl/win/source/gdi/salgdi3.cxx
Dosyayı görüntüle @
678b260c
...
@@ -613,7 +613,7 @@ struct ImplEnumInfo
...
@@ -613,7 +613,7 @@ struct ImplEnumInfo
// =======================================================================
// =======================================================================
static
CharSet
ImplCharSetToSal
(
BYTE
nCharSet
)
static
rtl_TextEncoding
ImplCharSetToSal
(
BYTE
nCharSet
)
{
{
rtl_TextEncoding
eTextEncoding
;
rtl_TextEncoding
eTextEncoding
;
...
@@ -2060,8 +2060,10 @@ static bool ImplGetFontAttrFromFile( const String& rFontFileURL,
...
@@ -2060,8 +2060,10 @@ static bool ImplGetFontAttrFromFile( const String& rFontFileURL,
return
false
;
return
false
;
// convert byte strings to unicode
// convert byte strings to unicode
rDFA
.
SetFamilyName
(
String
(
aBuffer
+
nNameOfs
,
osl_getThreadTextEncoding
()
));
char
*
pName
=
aBuffer
+
nNameOfs
;
rDFA
.
SetStyleName
(
String
(
aBuffer
+
nStyleOfs
,
osl_getThreadTextEncoding
()
));
rDFA
.
SetFamilyName
(
OUString
(
pName
,
strlen
(
pName
),
osl_getThreadTextEncoding
()));
char
*
pStyle
=
aBuffer
+
nStyleOfs
;
rDFA
.
SetStyleName
(
OUString
(
pStyle
,
strlen
(
pStyle
),
osl_getThreadTextEncoding
()
));
// byte offset 0x4C7: OS2_fsSelection
// byte offset 0x4C7: OS2_fsSelection
const
char
nFSS
=
aBuffer
[
0x4C7
];
const
char
nFSS
=
aBuffer
[
0x4C7
];
...
@@ -2181,12 +2183,12 @@ void WinSalGraphics::GetDevFontList( ImplDevFontList* pFontList )
...
@@ -2181,12 +2183,12 @@ void WinSalGraphics::GetDevFontList( ImplDevFontList* pFontList )
String
aEmptyString
;
String
aEmptyString
;
OUString
aBootStrap
;
OUString
aBootStrap
;
rtl
::
Bootstrap
::
get
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"BRAND_BASE_DIR"
)
),
aBootStrap
);
rtl
::
Bootstrap
::
get
(
OUString
(
"BRAND_BASE_DIR"
),
aBootStrap
);
aBootStrap
+=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"/"
LIBO_ETC_FOLDER
"/"
SAL_CONFIGFILE
(
"bootstrap"
)
)
);
aBootStrap
+=
OUString
(
"/"
LIBO_ETC_FOLDER
"/"
SAL_CONFIGFILE
(
"bootstrap"
)
);
rtl
::
Bootstrap
aBootstrap
(
aBootStrap
);
rtl
::
Bootstrap
aBootstrap
(
aBootStrap
);
OUString
aUserPath
;
OUString
aUserPath
;
aBootstrap
.
getFrom
(
OUString
(
"UserInstallation"
),
aUserPath
);
aBootstrap
.
getFrom
(
OUString
(
"UserInstallation"
),
aUserPath
);
aUserPath
+=
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"/user/config/fontnames.dat"
)
)
;
aUserPath
+=
"/user/config/fontnames.dat"
;
String
aBaseURL
=
aPath
.
copy
(
0
,
aPath
.
lastIndexOf
(
'/'
)
+
1
);
String
aBaseURL
=
aPath
.
copy
(
0
,
aPath
.
lastIndexOf
(
'/'
)
+
1
);
mpFontAttrCache
=
new
ImplFontAttrCache
(
aUserPath
,
aBaseURL
);
mpFontAttrCache
=
new
ImplFontAttrCache
(
aUserPath
,
aBaseURL
);
...
...
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