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
ef6fa18f
Kaydet (Commit)
ef6fa18f
authored
Tem 29, 2015
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
AddFontResourceExW exists since Windows 2000
Change-Id: If81b165bf910661a2742ab4fd5123ad8b97ae7d2
üst
395d922f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
35 deletions
+1
-35
salgdi3.cxx
vcl/win/source/gdi/salgdi3.cxx
+1
-35
No files found.
vcl/win/source/gdi/salgdi3.cxx
Dosyayı görüntüle @
ef6fa18f
...
...
@@ -1821,40 +1821,13 @@ struct TempFontItem
TempFontItem
*
mpNextItem
;
};
#ifdef FR_PRIVATE
static
int
WINAPI
__AddFontResourceExW
(
LPCWSTR
lpszfileName
,
DWORD
fl
,
PVOID
pdv
)
{
typedef
int
(
WINAPI
*
AddFontResourceExW_FUNC
)(
LPCWSTR
,
DWORD
,
PVOID
);
static
AddFontResourceExW_FUNC
pFunc
=
NULL
;
static
HMODULE
hmGDI
=
NULL
;
if
(
!
pFunc
&&
!
hmGDI
)
{
hmGDI
=
GetModuleHandleA
(
"GDI32"
);
if
(
hmGDI
)
pFunc
=
reinterpret_cast
<
AddFontResourceExW_FUNC
>
(
GetProcAddress
(
hmGDI
,
"AddFontResourceExW"
)
);
}
if
(
pFunc
)
return
pFunc
(
lpszfileName
,
fl
,
pdv
);
else
{
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
}
}
#endif
bool
ImplAddTempFont
(
SalData
&
rSalData
,
const
OUString
&
rFontFileURL
)
{
int
nRet
=
0
;
OUString
aUSytemPath
;
OSL_VERIFY
(
!
osl
::
FileBase
::
getSystemPathFromFileURL
(
rFontFileURL
,
aUSytemPath
)
);
#ifdef FR_PRIVATE
nRet
=
__AddFontResourceExW
(
reinterpret_cast
<
LPCWSTR
>
(
aUSytemPath
.
getStr
()),
FR_PRIVATE
,
NULL
);
#endif
nRet
=
AddFontResourceExW
(
reinterpret_cast
<
LPCWSTR
>
(
aUSytemPath
.
getStr
()),
FR_PRIVATE
,
NULL
);
if
(
!
nRet
)
{
...
...
@@ -1911,13 +1884,6 @@ void ImplReleaseTempFonts( SalData& rSalData )
rSalData
.
mpTempFontItem
=
p
->
mpNextItem
;
delete
p
;
}
#ifndef FR_PRIVATE
// notify every other application
// unless the temp fonts were installed as private fonts
if
(
nCount
>
0
)
PostMessageW
(
HWND_BROADCAST
,
WM_FONTCHANGE
,
0
,
NULL
);
#endif // FR_PRIVATE
}
static
bool
ImplGetFontAttrFromFile
(
const
OUString
&
rFontFileURL
,
...
...
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