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
ed8134d7
Kaydet (Commit)
ed8134d7
authored
Agu 02, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add vertical layout as a distinguishing font layout attribute
üst
2bb1ba5c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
18 deletions
+23
-18
impfont.hxx
vcl/inc/impfont.hxx
+1
-1
salgdi.h
vcl/inc/unx/salgdi.h
+3
-1
fontconfig.cxx
vcl/unx/generic/fontmanager/fontconfig.cxx
+5
-1
salgdi3.cxx
vcl/unx/generic/gdi/salgdi3.cxx
+14
-15
No files found.
vcl/inc/impfont.hxx
Dosyayı görüntüle @
ed8134d7
...
...
@@ -166,7 +166,7 @@ public:
{
return
meAntiAlias
==
ANTIALIAS_FALSE
;
}
bool
DontUseHinting
()
const
{
return
(
meHinting
==
HINTING_FALSE
)
||
(
GetHintStyle
()
==
HINT_NONE
);
}
virtual
void
*
GetPattern
(
void
*
/*pFace*/
,
bool
/*bEmbolden*/
)
const
virtual
void
*
GetPattern
(
void
*
/*pFace*/
,
bool
/*bEmbolden*/
,
bool
/*bVerticalMetrics*/
)
const
{
return
NULL
;
}
};
...
...
vcl/inc/unx/salgdi.h
Dosyayı görüntüle @
ed8134d7
...
...
@@ -72,11 +72,13 @@ public:
const
void
*
mpFace
;
const
void
*
mpOptions
;
bool
mbEmbolden
;
bool
mbVerticalMetrics
;
bool
operator
==
(
const
CacheId
&
rOther
)
const
{
return
mpFace
==
rOther
.
mpFace
&&
mpOptions
==
rOther
.
mpOptions
&&
mbEmbolden
==
rOther
.
mbEmbolden
;
mbEmbolden
==
rOther
.
mbEmbolden
&&
mbVerticalMetrics
==
rOther
.
mbVerticalMetrics
;
}
};
private
:
...
...
vcl/unx/generic/fontmanager/fontconfig.cxx
Dosyayı görüntüle @
ed8134d7
...
...
@@ -870,13 +870,17 @@ public:
{
FcPatternDestroy
(
mpPattern
);
}
virtual
void
*
GetPattern
(
void
*
face
,
bool
bEmbolden
)
const
virtual
void
*
GetPattern
(
void
*
face
,
bool
bEmbolden
,
bool
bVerticalLayout
)
const
{
FcValue
value
;
value
.
type
=
FcTypeFTFace
;
value
.
u
.
f
=
face
;
FcPatternDel
(
mpPattern
,
FC_FT_FACE
);
FcPatternAdd
(
mpPattern
,
FC_FT_FACE
,
value
,
FcTrue
);
FcPatternDel
(
mpPattern
,
FC_EMBOLDEN
);
FcPatternAddBool
(
mpPattern
,
FC_EMBOLDEN
,
bEmbolden
?
FcTrue
:
FcFalse
);
FcPatternDel
(
mpPattern
,
FC_VERTICAL_LAYOUT
);
FcPatternAddBool
(
mpPattern
,
FC_VERTICAL_LAYOUT
,
bVerticalLayout
?
FcTrue
:
FcFalse
);
return
mpPattern
;
}
FcPattern
*
mpPattern
;
...
...
vcl/unx/generic/gdi/salgdi3.cxx
Dosyayı görüntüle @
ed8134d7
...
...
@@ -371,26 +371,11 @@ void X11SalGraphics::DrawCairoAAFontString( const ServerFontLayout& rLayout )
ServerFont
&
rFont
=
rLayout
.
GetServerFont
();
cairo_font_face_t
*
font_face
=
NULL
;
void
*
pFace
=
rFont
.
GetFtFace
();
CairoFontsCache
::
CacheId
aId
;
aId
.
mpFace
=
pFace
;
aId
.
mpOptions
=
rFont
.
GetFontOptions
().
get
();
aId
.
mbEmbolden
=
rFont
.
NeedsArtificialBold
();
font_face
=
(
cairo_font_face_t
*
)
m_aCairoFontsCache
.
FindCachedFont
(
aId
);
if
(
!
font_face
)
{
const
ImplFontOptions
*
pOptions
=
rFont
.
GetFontOptions
().
get
();
void
*
pPattern
=
pOptions
?
pOptions
->
GetPattern
(
pFace
,
aId
.
mbEmbolden
)
:
NULL
;
if
(
pPattern
)
font_face
=
cairo_ft_font_face_create_for_pattern
(
reinterpret_cast
<
FcPattern
*>
(
pPattern
));
if
(
!
font_face
)
font_face
=
cairo_ft_font_face_create_for_ft_face
(
reinterpret_cast
<
FT_Face
>
(
pFace
),
rFont
.
GetLoadFlags
());
m_aCairoFontsCache
.
CacheFont
(
font_face
,
aId
);
}
cairo_set_font_face
(
cr
,
font_face
);
cairo_matrix_t
m
;
const
ImplFontSelectData
&
rFSD
=
rFont
.
GetFontSelData
();
...
...
@@ -409,6 +394,20 @@ void X11SalGraphics::DrawCairoAAFontString( const ServerFontLayout& rLayout )
size_t
nStartIndex
=
std
::
distance
(
aStart
,
aI
);
size_t
nLen
=
std
::
distance
(
aI
,
aNext
);
aId
.
mbVerticalMetrics
=
nGlyphRotation
!=
0.0
;
cairo_font_face_t
*
font_face
=
(
cairo_font_face_t
*
)
m_aCairoFontsCache
.
FindCachedFont
(
aId
);
if
(
!
font_face
)
{
const
ImplFontOptions
*
pOptions
=
rFont
.
GetFontOptions
().
get
();
void
*
pPattern
=
pOptions
?
pOptions
->
GetPattern
(
pFace
,
aId
.
mbEmbolden
,
aId
.
mbVerticalMetrics
)
:
NULL
;
if
(
pPattern
)
font_face
=
cairo_ft_font_face_create_for_pattern
(
reinterpret_cast
<
FcPattern
*>
(
pPattern
));
if
(
!
font_face
)
font_face
=
cairo_ft_font_face_create_for_ft_face
(
reinterpret_cast
<
FT_Face
>
(
pFace
),
rFont
.
GetLoadFlags
());
m_aCairoFontsCache
.
CacheFont
(
font_face
,
aId
);
}
cairo_set_font_face
(
cr
,
font_face
);
cairo_set_font_size
(
cr
,
nHeight
);
cairo_matrix_init_identity
(
&
m
);
...
...
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