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
d429ea8a
Kaydet (Commit)
d429ea8a
authored
Mar 09, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unnecessary typedef (that introduced a reserved identifier)
Change-Id: I6c0aaac10b2244271f3cdf45f4eceb6d685b213c
üst
201812ee
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
17 deletions
+17
-17
unusedcode.easy
unusedcode.easy
+1
-1
fontsubset.hxx
vcl/inc/fontsubset.hxx
+3
-3
sft.hxx
vcl/inc/sft.hxx
+4
-4
fontsubset.cxx
vcl/source/fontsubset/fontsubset.cxx
+1
-1
gsub.cxx
vcl/source/fontsubset/gsub.cxx
+4
-4
gsub.h
vcl/source/fontsubset/gsub.h
+4
-4
No files found.
unusedcode.easy
Dosyayı görüntüle @
d429ea8a
...
@@ -72,7 +72,7 @@ sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
...
@@ -72,7 +72,7 @@ sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >::_M_move_data(std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >&, std::integral_constant<bool, true>)
std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >::_M_move_data(std::_Rb_tree<rtl::OUString, std::pair<rtl::OUString const, (anonymous namespace)::TemplateId>, std::_Select1st<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> >, std::less<rtl::OUString>, std::allocator<std::pair<rtl::OUString const, (anonymous namespace)::TemplateId> > >&, std::integral_constant<bool, true>)
std::__cxx1998::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread>, std::allocator<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread> > >::reserve(unsigned long)
std::__cxx1998::vector<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread>, std::allocator<rtl::Reference<oox::xls::(anonymous namespace)::WorkerThread> > >::reserve(unsigned long)
vcl::MapChar(vcl::
_
TrueTypeFont*, unsigned short, bool)
vcl::MapChar(vcl::TrueTypeFont*, unsigned short, bool)
vcl::Region::IsInside(Rectangle const&) const
vcl::Region::IsInside(Rectangle const&) const
vcl::RenderSettings::PushAndApply(OutputDevice&)
vcl::RenderSettings::PushAndApply(OutputDevice&)
vcl::Window::DrawGradientWallpaper(OutputDevice&, long, long, long, long, Wallpaper const&)
vcl::Window::DrawGradientWallpaper(OutputDevice&, long, long, long, long, Wallpaper const&)
...
...
vcl/inc/fontsubset.hxx
Dosyayı görüntüle @
d429ea8a
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#include "salglyphid.hxx"
#include "salglyphid.hxx"
namespace
vcl
{
struct
_
TrueTypeFont
;
}
///< SFT's idea of a TTF font
namespace
vcl
{
struct
TrueTypeFont
;
}
///< SFT's idea of a TTF font
class
FontSubsetInfo
class
FontSubsetInfo
{
{
...
@@ -49,7 +49,7 @@ public:
...
@@ -49,7 +49,7 @@ public:
bool
LoadFont
(
FontType
eInFontType
,
bool
LoadFont
(
FontType
eInFontType
,
const
unsigned
char
*
pFontBytes
,
int
nByteLength
);
const
unsigned
char
*
pFontBytes
,
int
nByteLength
);
bool
LoadFont
(
vcl
::
_
TrueTypeFont
*
pSftTrueTypeFont
);
bool
LoadFont
(
vcl
::
TrueTypeFont
*
pSftTrueTypeFont
);
bool
CreateFontSubset
(
int
nOutFontTypeMask
,
bool
CreateFontSubset
(
int
nOutFontTypeMask
,
FILE
*
pOutFile
,
const
char
*
pOutFontName
,
FILE
*
pOutFile
,
const
char
*
pOutFontName
,
...
@@ -70,7 +70,7 @@ private:
...
@@ -70,7 +70,7 @@ private:
unsigned
const
char
*
mpInFontBytes
;
unsigned
const
char
*
mpInFontBytes
;
int
mnInByteLength
;
int
mnInByteLength
;
FontType
meInFontType
;
///< allowed mask of input font-types
FontType
meInFontType
;
///< allowed mask of input font-types
vcl
::
_TrueTypeFont
*
mpSftTTFont
;
vcl
::
TrueTypeFont
*
mpSftTTFont
;
// subset-request details
// subset-request details
int
mnReqFontTypeMask
;
///< allowed subset-target font types
int
mnReqFontTypeMask
;
///< allowed subset-target font types
...
...
vcl/inc/sft.hxx
Dosyayı görüntüle @
d429ea8a
...
@@ -100,7 +100,7 @@ namespace vcl
...
@@ -100,7 +100,7 @@ namespace vcl
FWIDTH_ULTRA_EXPANDED
=
9
/**< 200% of normal */
FWIDTH_ULTRA_EXPANDED
=
9
/**< 200% of normal */
};
};
/** Type of the 'kern' table, stored in
_
TrueTypeFont::kerntype */
/** Type of the 'kern' table, stored in TrueTypeFont::kerntype */
enum
KernType
{
enum
KernType
{
KT_NONE
=
0
,
/**< no kern table */
KT_NONE
=
0
,
/**< no kern table */
KT_APPLE_NEW
=
1
,
/**< new Apple kern table */
KT_APPLE_NEW
=
1
,
/**< new Apple kern table */
...
@@ -226,7 +226,7 @@ namespace vcl
...
@@ -226,7 +226,7 @@ namespace vcl
sal_Int16
y
;
/**< Y coordinate in EmSquare units */
sal_Int16
y
;
/**< Y coordinate in EmSquare units */
}
ControlPoint
;
}
ControlPoint
;
typedef
struct
_TrueTypeFon
t
TrueTypeFont
;
struc
t
TrueTypeFont
;
/**
/**
* @defgroup sft Sun Font Tools Exported Functions
* @defgroup sft Sun Font Tools Exported Functions
...
@@ -520,7 +520,7 @@ namespace vcl
...
@@ -520,7 +520,7 @@ namespace vcl
/*- private definitions */
/*- private definitions */
struct
_
TrueTypeFont
{
struct
TrueTypeFont
{
sal_uInt32
tag
;
sal_uInt32
tag
;
char
*
fname
;
char
*
fname
;
...
@@ -550,7 +550,7 @@ namespace vcl
...
@@ -550,7 +550,7 @@ namespace vcl
void
*
pGSubstitution
;
/* info provided by GSUB for UseGSUB() */
void
*
pGSubstitution
;
/* info provided by GSUB for UseGSUB() */
};
};
/* indexes into
_TrueTypeFont::tables[] and _
TrueTypeFont::tlens[] */
/* indexes into
TrueTypeFont::tables[] and
TrueTypeFont::tlens[] */
#define O_maxp 0
/* 'maxp' */
#define O_maxp 0
/* 'maxp' */
#define O_glyf 1
/* 'glyf' */
#define O_glyf 1
/* 'glyf' */
#define O_head 2
/* 'head' */
#define O_head 2
/* 'head' */
...
...
vcl/source/fontsubset/fontsubset.cxx
Dosyayı görüntüle @
d429ea8a
...
@@ -59,7 +59,7 @@ bool FontSubsetInfo::LoadFont(
...
@@ -59,7 +59,7 @@ bool FontSubsetInfo::LoadFont(
}
}
// prepare subsetting for fonts that are known to the SFT-parser
// prepare subsetting for fonts that are known to the SFT-parser
bool
FontSubsetInfo
::
LoadFont
(
vcl
::
_
TrueTypeFont
*
pSftTTFont
)
bool
FontSubsetInfo
::
LoadFont
(
vcl
::
TrueTypeFont
*
pSftTTFont
)
{
{
DBG_ASSERT
(
(
mpInFontBytes
==
nullptr
),
"Subset from SFT and from mapped font-file requested"
);
DBG_ASSERT
(
(
mpInFontBytes
==
nullptr
),
"Subset from SFT and from mapped font-file requested"
);
mpSftTTFont
=
pSftTTFont
;
mpSftTTFont
=
pSftTTFont
;
...
...
vcl/source/fontsubset/gsub.cxx
Dosyayı görüntüle @
d429ea8a
...
@@ -50,7 +50,7 @@ inline sal_uInt16 NEXT_UShort( const unsigned char* &p )
...
@@ -50,7 +50,7 @@ inline sal_uInt16 NEXT_UShort( const unsigned char* &p )
#define MKTAG(s) ((((((s[0]<<8)+s[1])<<8)+s[2])<<8)+s[3])
#define MKTAG(s) ((((((s[0]<<8)+s[1])<<8)+s[2])<<8)+s[3])
bool
ReadGSUB
(
struct
_
TrueTypeFont
*
pTTFile
,
bool
ReadGSUB
(
struct
TrueTypeFont
*
pTTFile
,
int
nRequestedScript
,
int
nRequestedLangsys
)
int
nRequestedScript
,
int
nRequestedLangsys
)
{
{
const
FT_Byte
*
pGsubBase
=
pTTFile
->
tables
[
O_gsub
];
const
FT_Byte
*
pGsubBase
=
pTTFile
->
tables
[
O_gsub
];
...
@@ -315,13 +315,13 @@ bool ReadGSUB( struct _TrueTypeFont* pTTFile,
...
@@ -315,13 +315,13 @@ bool ReadGSUB( struct _TrueTypeFont* pTTFile,
return
true
;
return
true
;
}
}
void
ReleaseGSUB
(
struct
_
TrueTypeFont
*
pTTFile
)
void
ReleaseGSUB
(
struct
TrueTypeFont
*
pTTFile
)
{
{
GlyphSubstitution
*
pGlyphSubstitution
=
static_cast
<
GlyphSubstitution
*>
(
pTTFile
->
pGSubstitution
);
GlyphSubstitution
*
pGlyphSubstitution
=
static_cast
<
GlyphSubstitution
*>
(
pTTFile
->
pGSubstitution
);
delete
pGlyphSubstitution
;
delete
pGlyphSubstitution
;
}
}
int
UseGSUB
(
struct
_
TrueTypeFont
*
pTTFile
,
int
nGlyph
)
int
UseGSUB
(
struct
TrueTypeFont
*
pTTFile
,
int
nGlyph
)
{
{
GlyphSubstitution
*
pGlyphSubstitution
=
static_cast
<
GlyphSubstitution
*>
(
pTTFile
->
pGSubstitution
);
GlyphSubstitution
*
pGlyphSubstitution
=
static_cast
<
GlyphSubstitution
*>
(
pTTFile
->
pGSubstitution
);
if
(
pGlyphSubstitution
!=
nullptr
)
if
(
pGlyphSubstitution
!=
nullptr
)
...
@@ -334,7 +334,7 @@ int UseGSUB( struct _TrueTypeFont* pTTFile, int nGlyph )
...
@@ -334,7 +334,7 @@ int UseGSUB( struct _TrueTypeFont* pTTFile, int nGlyph )
return
nGlyph
;
return
nGlyph
;
}
}
int
HasVerticalGSUB
(
struct
_
TrueTypeFont
*
pTTFile
)
int
HasVerticalGSUB
(
struct
TrueTypeFont
*
pTTFile
)
{
{
GlyphSubstitution
*
pGlyphSubstitution
=
static_cast
<
GlyphSubstitution
*>
(
pTTFile
->
pGSubstitution
);
GlyphSubstitution
*
pGlyphSubstitution
=
static_cast
<
GlyphSubstitution
*>
(
pTTFile
->
pGSubstitution
);
return
pGlyphSubstitution
?
+
1
:
0
;
return
pGlyphSubstitution
?
+
1
:
0
;
...
...
vcl/source/fontsubset/gsub.h
Dosyayı görüntüle @
d429ea8a
...
@@ -23,13 +23,13 @@
...
@@ -23,13 +23,13 @@
namespace
vcl
namespace
vcl
{
{
int
HasVerticalGSUB
(
struct
vcl
::
_
TrueTypeFont
*
pTTFile
);
int
HasVerticalGSUB
(
struct
vcl
::
TrueTypeFont
*
pTTFile
);
int
UseGSUB
(
struct
vcl
::
_
TrueTypeFont
*
pTTFile
,
int
nGlyph
);
int
UseGSUB
(
struct
vcl
::
TrueTypeFont
*
pTTFile
,
int
nGlyph
);
bool
ReadGSUB
(
struct
vcl
::
_
TrueTypeFont
*
pTTFile
,
int
nRequestedScript
,
int
nRequestedLangsys
);
bool
ReadGSUB
(
struct
vcl
::
TrueTypeFont
*
pTTFile
,
int
nRequestedScript
,
int
nRequestedLangsys
);
void
ReleaseGSUB
(
struct
vcl
::
_
TrueTypeFont
*
pTTFile
);
void
ReleaseGSUB
(
struct
vcl
::
TrueTypeFont
*
pTTFile
);
}
}
...
...
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