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
50d0b31d
Kaydet (Commit)
50d0b31d
authored
Tem 14, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Related: fdo#31821 pull tables from otf fonts as well
Change-Id: If3bd4ac640aaf6b68fa4ae2a363f691601ff942b
üst
c375cd09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
gcach_ftyp.cxx
vcl/generic/glyphs/gcach_ftyp.cxx
+7
-4
No files found.
vcl/generic/glyphs/gcach_ftyp.cxx
Dosyayı görüntüle @
50d0b31d
...
@@ -449,7 +449,9 @@ static unsigned GetUInt( const unsigned char* p ) { return((p[0]<<24)+(p[1]<<16)
...
@@ -449,7 +449,9 @@ static unsigned GetUInt( const unsigned char* p ) { return((p[0]<<24)+(p[1]<<16)
static
unsigned
GetUShort
(
const
unsigned
char
*
p
){
return
((
p
[
0
]
<<
8
)
+
p
[
1
]);}
static
unsigned
GetUShort
(
const
unsigned
char
*
p
){
return
((
p
[
0
]
<<
8
)
+
p
[
1
]);}
//static signed GetSShort( const unsigned char* p ){ return((short)((p[0]<<8)+p[1]));}
//static signed GetSShort( const unsigned char* p ){ return((short)((p[0]<<8)+p[1]));}
// -----------------------------------------------------------------------
static
const
sal_uInt32
T_true
=
0x74727565
;
/* 'true' */
static
const
sal_uInt32
T_ttcf
=
0x74746366
;
/* 'ttcf' */
static
const
sal_uInt32
T_otto
=
0x4f54544f
;
/* 'OTTO' */
const
unsigned
char
*
FtFontInfo
::
GetTable
(
const
char
*
pTag
,
sal_uLong
*
pLength
)
const
const
unsigned
char
*
FtFontInfo
::
GetTable
(
const
char
*
pTag
,
sal_uLong
*
pLength
)
const
{
{
...
@@ -458,12 +460,13 @@ const unsigned char* FtFontInfo::GetTable( const char* pTag, sal_uLong* pLength
...
@@ -458,12 +460,13 @@ const unsigned char* FtFontInfo::GetTable( const char* pTag, sal_uLong* pLength
if
(
!
pBuffer
||
nFileSize
<
1024
)
if
(
!
pBuffer
||
nFileSize
<
1024
)
return
NULL
;
return
NULL
;
// we currently
only handle TTF and TTC
headers
// we currently
handle TTF, TTC and OTF
headers
unsigned
nFormat
=
GetUInt
(
pBuffer
);
unsigned
nFormat
=
GetUInt
(
pBuffer
);
const
unsigned
char
*
p
=
pBuffer
+
12
;
const
unsigned
char
*
p
=
pBuffer
+
12
;
if
(
nFormat
==
0x74746366
)
// TTC_MAGIC
if
(
nFormat
==
T_ttcf
)
// TTC_MAGIC
p
+=
GetUInt
(
p
+
4
*
mnFaceNum
);
p
+=
GetUInt
(
p
+
4
*
mnFaceNum
);
else
if
(
(
nFormat
!=
0x00010000
)
&&
(
nFormat
!=
0x74727565
)
)
// TTF_MAGIC and Apple TTF Magic
else
if
(
nFormat
!=
0x00010000
&&
nFormat
!=
T_true
&&
nFormat
!=
T_otto
)
// TTF_MAGIC and Apple TTF Magic and PS-OpenType font
return
NULL
;
return
NULL
;
// walk table directory until match
// walk table directory until match
...
...
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