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
64d0de92
Kaydet (Commit)
64d0de92
authored
Eki 07, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:mergeclasses
Change-Id: If8fabc79f4cbef6fc0d164bbe2f6136f1d1f00af
üst
687bba75
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
36 deletions
+37
-36
mergeclasses.results
compilerplugins/clang/mergeclasses.results
+0
-1
fontconfig.cxx
vcl/generic/fontmanager/fontconfig.cxx
+7
-14
gcach_ftyp.cxx
vcl/generic/glyphs/gcach_ftyp.cxx
+2
-2
fontmanager.hxx
vcl/inc/fontmanager.hxx
+2
-2
glyphcache.hxx
vcl/inc/generic/glyphcache.hxx
+5
-5
impfont.hxx
vcl/inc/impfont.hxx
+17
-8
cairotextrender.cxx
vcl/unx/generic/gdi/cairotextrender.cxx
+4
-4
No files found.
compilerplugins/clang/mergeclasses.results
Dosyayı görüntüle @
64d0de92
...
@@ -46,7 +46,6 @@ merge ISwFrameControl with SwFrameMenuButtonBase
...
@@ -46,7 +46,6 @@ merge ISwFrameControl with SwFrameMenuButtonBase
merge IXFAttrList with XFSaxAttrList
merge IXFAttrList with XFSaxAttrList
merge IXFStream with XFSaxStream
merge IXFStream with XFSaxStream
merge IXFStyle with XFStyle
merge IXFStyle with XFStyle
merge ImplFontOptions with FontConfigFontOptions
merge ImplGlyphFallbackFontSubstitution with FcGlyphFallbackSubstititution
merge ImplGlyphFallbackFontSubstitution with FcGlyphFallbackSubstititution
merge ImplPreMatchFontSubstitution with FcPreMatchSubstititution
merge ImplPreMatchFontSubstitution with FcPreMatchSubstititution
merge LwpDLList with LwpParaProperty
merge LwpDLList with LwpParaProperty
...
...
vcl/generic/fontmanager/fontconfig.cxx
Dosyayı görüntüle @
64d0de92
...
@@ -1140,15 +1140,12 @@ bool PrintFontManager::Substitute( FontSelectPattern &rPattern, OUString& rMissi
...
@@ -1140,15 +1140,12 @@ bool PrintFontManager::Substitute( FontSelectPattern &rPattern, OUString& rMissi
return
bRet
;
return
bRet
;
}
}
class
FontConfigFontOptions
:
public
ImplFontOptions
FontConfigFontOptions
::~
FontConfigFontOptions
()
{
{
public
:
FcPatternDestroy
(
mpPattern
);
FontConfigFontOptions
()
:
mpPattern
(
0
)
{}
}
virtual
~
FontConfigFontOptions
()
{
void
*
FontConfigFontOptions
::
GetPattern
(
void
*
face
,
bool
bEmbolden
)
const
FcPatternDestroy
(
mpPattern
);
}
virtual
void
*
GetPattern
(
void
*
face
,
bool
bEmbolden
,
bool
/*bVerticalLayout*/
)
const
SAL_OVERRIDE
{
{
FcValue
value
;
FcValue
value
;
value
.
type
=
FcTypeFTFace
;
value
.
type
=
FcTypeFTFace
;
...
@@ -1163,10 +1160,8 @@ public:
...
@@ -1163,10 +1160,8 @@ public:
#endif
#endif
return
mpPattern
;
return
mpPattern
;
}
}
FcPattern
*
mpPattern
;
};
Impl
FontOptions
*
PrintFontManager
::
getFontOptions
(
FontConfig
FontOptions
*
PrintFontManager
::
getFontOptions
(
const
FastPrintFontInfo
&
rInfo
,
int
nSize
,
void
(
*
subcallback
)(
void
*
))
const
FastPrintFontInfo
&
rInfo
,
int
nSize
,
void
(
*
subcallback
)(
void
*
))
{
{
FontCfgWrapper
&
rWrapper
=
FontCfgWrapper
::
get
();
FontCfgWrapper
&
rWrapper
=
FontCfgWrapper
::
get
();
...
@@ -1210,9 +1205,7 @@ ImplFontOptions* PrintFontManager::getFontOptions(
...
@@ -1210,9 +1205,7 @@ ImplFontOptions* PrintFontManager::getFontOptions(
(
void
)
FcPatternGetInteger
(
pResult
,
(
void
)
FcPatternGetInteger
(
pResult
,
FC_HINT_STYLE
,
0
,
&
hintstyle
);
FC_HINT_STYLE
,
0
,
&
hintstyle
);
pOptions
=
new
FontConfigFontOptions
;
pOptions
=
new
FontConfigFontOptions
(
pResult
);
pOptions
->
mpPattern
=
pResult
;
if
(
eEmbeddedBitmap
==
FcResultMatch
)
if
(
eEmbeddedBitmap
==
FcResultMatch
)
pOptions
->
meEmbeddedBitmap
=
embitmap
?
EMBEDDEDBITMAP_TRUE
:
EMBEDDEDBITMAP_FALSE
;
pOptions
->
meEmbeddedBitmap
=
embitmap
?
EMBEDDEDBITMAP_TRUE
:
EMBEDDEDBITMAP_FALSE
;
...
...
vcl/generic/glyphs/gcach_ftyp.cxx
Dosyayı görüntüle @
64d0de92
...
@@ -555,7 +555,7 @@ ServerFont::ServerFont( const FontSelectPattern& rFSD, FtFontInfo* pFI )
...
@@ -555,7 +555,7 @@ ServerFont::ServerFont( const FontSelectPattern& rFSD, FtFontInfo* pFI )
mnLoadFlags
|=
FT_LOAD_NO_BITMAP
;
mnLoadFlags
|=
FT_LOAD_NO_BITMAP
;
}
}
void
ServerFont
::
SetFontOptions
(
std
::
shared_ptr
<
Impl
FontOptions
>
xFontOptions
)
void
ServerFont
::
SetFontOptions
(
std
::
shared_ptr
<
FontConfig
FontOptions
>
xFontOptions
)
{
{
mxFontOptions
=
xFontOptions
;
mxFontOptions
=
xFontOptions
;
...
@@ -608,7 +608,7 @@ void ServerFont::SetFontOptions(std::shared_ptr<ImplFontOptions> xFontOptions)
...
@@ -608,7 +608,7 @@ void ServerFont::SetFontOptions(std::shared_ptr<ImplFontOptions> xFontOptions)
mnLoadFlags
|=
FT_LOAD_NO_BITMAP
;
mnLoadFlags
|=
FT_LOAD_NO_BITMAP
;
}
}
std
::
shared_ptr
<
Impl
FontOptions
>
ServerFont
::
GetFontOptions
()
const
std
::
shared_ptr
<
FontConfig
FontOptions
>
ServerFont
::
GetFontOptions
()
const
{
{
return
mxFontOptions
;
return
mxFontOptions
;
}
}
...
...
vcl/inc/fontmanager.hxx
Dosyayı görüntüle @
64d0de92
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
namespace
utl
{
class
MultiAtomProvider
;
}
namespace
utl
{
class
MultiAtomProvider
;
}
class
FontSubsetInfo
;
class
FontSubsetInfo
;
class
Impl
FontOptions
;
class
FontConfig
FontOptions
;
class
FontSelectPattern
;
class
FontSelectPattern
;
namespace
psp
{
namespace
psp
{
...
@@ -498,7 +498,7 @@ public:
...
@@ -498,7 +498,7 @@ public:
false else
false else
*/
*/
bool
matchFont
(
FastPrintFontInfo
&
rInfo
,
const
com
::
sun
::
star
::
lang
::
Locale
&
rLocale
);
bool
matchFont
(
FastPrintFontInfo
&
rInfo
,
const
com
::
sun
::
star
::
lang
::
Locale
&
rLocale
);
static
Impl
FontOptions
*
getFontOptions
(
const
FastPrintFontInfo
&
,
int
nSize
,
void
(
*
subcallback
)(
void
*
));
static
FontConfig
FontOptions
*
getFontOptions
(
const
FastPrintFontInfo
&
,
int
nSize
,
void
(
*
subcallback
)(
void
*
));
bool
Substitute
(
FontSelectPattern
&
rPattern
,
OUString
&
rMissingCodes
);
bool
Substitute
(
FontSelectPattern
&
rPattern
,
OUString
&
rMissingCodes
);
...
...
vcl/inc/generic/glyphcache.hxx
Dosyayı görüntüle @
64d0de92
...
@@ -42,7 +42,7 @@ class FtFontInfo;
...
@@ -42,7 +42,7 @@ class FtFontInfo;
class
GlyphCachePeer
;
class
GlyphCachePeer
;
class
GlyphData
;
class
GlyphData
;
class
GraphiteFaceWrapper
;
class
GraphiteFaceWrapper
;
class
Impl
FontOptions
;
class
FontConfig
FontOptions
;
class
PhysicalFontCollection
;
class
PhysicalFontCollection
;
class
RawBitmap
;
class
RawBitmap
;
class
ServerFont
;
class
ServerFont
;
...
@@ -174,8 +174,8 @@ public:
...
@@ -174,8 +174,8 @@ public:
bool
TestFont
()
const
{
return
mbFaceOk
;}
bool
TestFont
()
const
{
return
mbFaceOk
;}
FT_Face
GetFtFace
()
const
;
FT_Face
GetFtFace
()
const
;
int
GetLoadFlags
()
const
{
return
(
mnLoadFlags
&
~
FT_LOAD_IGNORE_TRANSFORM
);
}
int
GetLoadFlags
()
const
{
return
(
mnLoadFlags
&
~
FT_LOAD_IGNORE_TRANSFORM
);
}
void
SetFontOptions
(
std
::
shared_ptr
<
Impl
FontOptions
>
);
void
SetFontOptions
(
std
::
shared_ptr
<
FontConfig
FontOptions
>
);
std
::
shared_ptr
<
Impl
FontOptions
>
GetFontOptions
()
const
;
std
::
shared_ptr
<
FontConfig
FontOptions
>
GetFontOptions
()
const
;
bool
NeedsArtificialBold
()
const
{
return
mbArtBold
;
}
bool
NeedsArtificialBold
()
const
{
return
mbArtBold
;
}
bool
NeedsArtificialItalic
()
const
{
return
mbArtItalic
;
}
bool
NeedsArtificialItalic
()
const
{
return
mbArtItalic
;
}
...
@@ -253,7 +253,7 @@ private:
...
@@ -253,7 +253,7 @@ private:
FT_FaceRec_
*
maFaceFT
;
FT_FaceRec_
*
maFaceFT
;
FT_SizeRec_
*
maSizeFT
;
FT_SizeRec_
*
maSizeFT
;
std
::
shared_ptr
<
Impl
FontOptions
>
mxFontOptions
;
std
::
shared_ptr
<
FontConfig
FontOptions
>
mxFontOptions
;
bool
mbFaceOk
;
bool
mbFaceOk
;
bool
mbArtItalic
;
bool
mbArtItalic
;
...
@@ -278,7 +278,7 @@ public:
...
@@ -278,7 +278,7 @@ public:
private
:
private
:
ServerFont
*
mpServerFont
;
ServerFont
*
mpServerFont
;
std
::
shared_ptr
<
Impl
FontOptions
>
mxFontOptions
;
std
::
shared_ptr
<
FontConfig
FontOptions
>
mxFontOptions
;
bool
mbGotFontOptions
;
bool
mbGotFontOptions
;
};
};
...
...
vcl/inc/impfont.hxx
Dosyayı görüntüle @
64d0de92
...
@@ -122,9 +122,8 @@ public:
...
@@ -122,9 +122,8 @@ public:
bool
operator
==
(
const
ImplFontMetric
&
)
const
;
bool
operator
==
(
const
ImplFontMetric
&
)
const
;
};
};
// - ImplFontOptions -
typedef
struct
_FcPattern
FcPattern
;
class
FontConfigFontOptions
class
ImplFontOptions
{
{
public
:
public
:
FontEmbeddedBitmap
meEmbeddedBitmap
;
// whether the embedded bitmaps should be used
FontEmbeddedBitmap
meEmbeddedBitmap
;
// whether the embedded bitmaps should be used
...
@@ -132,21 +131,31 @@ public:
...
@@ -132,21 +131,31 @@ public:
FontAutoHint
meAutoHint
;
// whether the font should be autohinted
FontAutoHint
meAutoHint
;
// whether the font should be autohinted
FontHinting
meHinting
;
// whether the font should be hinted
FontHinting
meHinting
;
// whether the font should be hinted
FontHintStyle
meHintStyle
;
// type of font hinting to be used
FontHintStyle
meHintStyle
;
// type of font hinting to be used
public
:
ImplFontOptions
()
:
FontConfigFontOptions
()
:
meEmbeddedBitmap
(
EMBEDDEDBITMAP_DONTKNOW
),
meAntiAlias
(
ANTIALIAS_DONTKNOW
),
meAutoHint
(
AUTOHINT_DONTKNOW
),
meHinting
(
HINTING_DONTKNOW
),
meHintStyle
(
HINT_SLIGHT
),
mpPattern
(
0
)
{}
FontConfigFontOptions
(
FcPattern
*
pPattern
)
:
meEmbeddedBitmap
(
EMBEDDEDBITMAP_DONTKNOW
),
meEmbeddedBitmap
(
EMBEDDEDBITMAP_DONTKNOW
),
meAntiAlias
(
ANTIALIAS_DONTKNOW
),
meAntiAlias
(
ANTIALIAS_DONTKNOW
),
meAutoHint
(
AUTOHINT_DONTKNOW
),
meAutoHint
(
AUTOHINT_DONTKNOW
),
meHinting
(
HINTING_DONTKNOW
),
meHinting
(
HINTING_DONTKNOW
),
meHintStyle
(
HINT_SLIGHT
)
{}
meHintStyle
(
HINT_SLIGHT
),
virtual
~
ImplFontOptions
()
{}
mpPattern
(
pPattern
)
{}
~
FontConfigFontOptions
();
FontAutoHint
GetUseAutoHint
()
const
{
return
meAutoHint
;
}
FontAutoHint
GetUseAutoHint
()
const
{
return
meAutoHint
;
}
FontHintStyle
GetHintStyle
()
const
{
return
meHintStyle
;
}
FontHintStyle
GetHintStyle
()
const
{
return
meHintStyle
;
}
bool
DontUseEmbeddedBitmaps
()
const
{
return
meEmbeddedBitmap
==
EMBEDDEDBITMAP_FALSE
;
}
bool
DontUseEmbeddedBitmaps
()
const
{
return
meEmbeddedBitmap
==
EMBEDDEDBITMAP_FALSE
;
}
bool
DontUseAntiAlias
()
const
{
return
meAntiAlias
==
ANTIALIAS_FALSE
;
}
bool
DontUseAntiAlias
()
const
{
return
meAntiAlias
==
ANTIALIAS_FALSE
;
}
bool
DontUseHinting
()
const
{
return
(
meHinting
==
HINTING_FALSE
)
||
(
GetHintStyle
()
==
HINT_NONE
);
}
bool
DontUseHinting
()
const
{
return
(
meHinting
==
HINTING_FALSE
)
||
(
GetHintStyle
()
==
HINT_NONE
);
}
virtual
void
*
GetPattern
(
void
*
/*pFace*/
,
bool
/*bEmbolden*/
,
bool
/*bVerticalMetrics*/
)
const
{
return
NULL
;
}
void
*
GetPattern
(
void
*
/*pFace*/
,
bool
/*bEmbolden*/
)
const
;
private
:
FcPattern
*
mpPattern
;
};
};
// - ImplFontCharMap -
// - ImplFontCharMap -
...
...
vcl/unx/generic/gdi/cairotextrender.cxx
Dosyayı görüntüle @
64d0de92
...
@@ -100,7 +100,7 @@ bool CairoTextRender::setFont( const FontSelectPattern *pEntry, int nFallbackLev
...
@@ -100,7 +100,7 @@ bool CairoTextRender::setFont( const FontSelectPattern *pEntry, int nFallbackLev
return
false
;
return
false
;
}
}
Impl
FontOptions
*
GetFCFontOptions
(
const
ImplFontAttributes
&
rFontAttributes
,
int
nSize
);
FontConfig
FontOptions
*
GetFCFontOptions
(
const
ImplFontAttributes
&
rFontAttributes
,
int
nSize
);
void
ImplServerFontEntry
::
HandleFontOptions
()
void
ImplServerFontEntry
::
HandleFontOptions
()
{
{
...
@@ -257,8 +257,8 @@ void CairoTextRender::DrawServerFontLayout( const ServerFontLayout& rLayout )
...
@@ -257,8 +257,8 @@ void CairoTextRender::DrawServerFontLayout( const ServerFontLayout& rLayout )
cairo_font_face_t
*
font_face
=
static_cast
<
cairo_font_face_t
*>
(
CairoFontsCache
::
FindCachedFont
(
aId
));
cairo_font_face_t
*
font_face
=
static_cast
<
cairo_font_face_t
*>
(
CairoFontsCache
::
FindCachedFont
(
aId
));
if
(
!
font_face
)
if
(
!
font_face
)
{
{
const
Impl
FontOptions
*
pOptions
=
rFont
.
GetFontOptions
().
get
();
const
FontConfig
FontOptions
*
pOptions
=
rFont
.
GetFontOptions
().
get
();
void
*
pPattern
=
pOptions
?
pOptions
->
GetPattern
(
aFace
,
aId
.
mbEmbolden
,
aId
.
mbVerticalMetrics
)
:
NULL
;
void
*
pPattern
=
pOptions
?
pOptions
->
GetPattern
(
aFace
,
aId
.
mbEmbolden
)
:
NULL
;
if
(
pPattern
)
if
(
pPattern
)
font_face
=
cairo_ft_font_face_create_for_pattern
(
static_cast
<
FcPattern
*>
(
pPattern
));
font_face
=
cairo_ft_font_face_create_for_pattern
(
static_cast
<
FcPattern
*>
(
pPattern
));
if
(
!
font_face
)
if
(
!
font_face
)
...
@@ -439,7 +439,7 @@ void cairosubcallback(void* pPattern)
...
@@ -439,7 +439,7 @@ void cairosubcallback(void* pPattern)
static_cast
<
FcPattern
*>
(
pPattern
));
static_cast
<
FcPattern
*>
(
pPattern
));
}
}
Impl
FontOptions
*
GetFCFontOptions
(
const
ImplFontAttributes
&
rFontAttributes
,
int
nSize
)
FontConfig
FontOptions
*
GetFCFontOptions
(
const
ImplFontAttributes
&
rFontAttributes
,
int
nSize
)
{
{
psp
::
FastPrintFontInfo
aInfo
;
psp
::
FastPrintFontInfo
aInfo
;
...
...
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