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
5bc86df0
Kaydet (Commit)
5bc86df0
authored
Agu 13, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lets keep original encoding
üst
e4473809
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
salgdi3.cxx
vcl/win/source/gdi/salgdi3.cxx
+3
-3
No files found.
vcl/win/source/gdi/salgdi3.cxx
Dosyayı görüntüle @
5bc86df0
...
@@ -2812,7 +2812,7 @@ sal_Bool WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
...
@@ -2812,7 +2812,7 @@ sal_Bool WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
if
(
osl_File_E_None
!=
osl_getSystemPathFromFileURL
(
rToFile
.
pData
,
&
aSysPath
.
pData
)
)
if
(
osl_File_E_None
!=
osl_getSystemPathFromFileURL
(
rToFile
.
pData
,
&
aSysPath
.
pData
)
)
return
FALSE
;
return
FALSE
;
const
rtl_TextEncoding
aThreadEncoding
=
osl_getThreadTextEncoding
();
const
rtl_TextEncoding
aThreadEncoding
=
osl_getThreadTextEncoding
();
const
ByteString
aToFile
(
rtl
::
OUStringToOString
(
aSysPath
,
aThreadEncoding
)
);
const
rtl
::
OString
aToFile
(
rtl
::
OUStringToOString
(
aSysPath
,
aThreadEncoding
)
);
// check if the font has a CFF-table
// check if the font has a CFF-table
const
DWORD
nCffTag
=
CalcTag
(
"CFF "
);
const
DWORD
nCffTag
=
CalcTag
(
"CFF "
);
...
@@ -2840,7 +2840,7 @@ sal_Bool WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
...
@@ -2840,7 +2840,7 @@ sal_Bool WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
pCharMap
->
DeReference
();
// TODO: and and use a RAII object
pCharMap
->
DeReference
();
// TODO: and and use a RAII object
// provide a font subset from the CFF-table
// provide a font subset from the CFF-table
FILE
*
pOutFile
=
fopen
(
aToFile
.
GetBuffe
r
(),
"wb"
);
FILE
*
pOutFile
=
fopen
(
aToFile
.
getSt
r
(),
"wb"
);
rInfo
.
LoadFont
(
FontSubsetInfo
::
CFF_FONT
,
aRawCffData
.
get
(),
aRawCffData
.
size
()
);
rInfo
.
LoadFont
(
FontSubsetInfo
::
CFF_FONT
,
aRawCffData
.
get
(),
aRawCffData
.
size
()
);
bool
bRC
=
rInfo
.
CreateFontSubset
(
FontSubsetInfo
::
TYPE1_PFB
,
pOutFile
,
NULL
,
bool
bRC
=
rInfo
.
CreateFontSubset
(
FontSubsetInfo
::
TYPE1_PFB
,
pOutFile
,
NULL
,
nRealGlyphIds
,
pEncoding
,
nGlyphCount
,
pGlyphWidths
);
nRealGlyphIds
,
pEncoding
,
nGlyphCount
,
pGlyphWidths
);
...
@@ -2929,7 +2929,7 @@ sal_Bool WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
...
@@ -2929,7 +2929,7 @@ sal_Bool WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
free
(
pMetrics
);
free
(
pMetrics
);
// write subset into destination file
// write subset into destination file
nRC
=
::
CreateTTFromTTGlyphs
(
aSftTTF
.
get
(),
aToFile
.
GetBuffe
r
(),
aShortIDs
,
nRC
=
::
CreateTTFromTTGlyphs
(
aSftTTF
.
get
(),
aToFile
.
getSt
r
(),
aShortIDs
,
aTempEncs
,
nGlyphCount
,
0
,
NULL
,
0
);
aTempEncs
,
nGlyphCount
,
0
,
NULL
,
0
);
return
(
nRC
==
SF_OK
);
return
(
nRC
==
SF_OK
);
}
}
...
...
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