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
ff08ee6a
Kaydet (Commit)
ff08ee6a
authored
Kas 15, 2016
tarafından
Khaled Hosny
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#103785: Correctly position vertical glyphs
Change-Id: Ibd0ae230f54ada55a26d24ea865e7b93070ce2a0
üst
087705c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
cairotextrender.cxx
vcl/unx/generic/gdi/cairotextrender.cxx
+11
-4
No files found.
vcl/unx/generic/gdi/cairotextrender.cxx
Dosyayı görüntüle @
ff08ee6a
...
@@ -321,12 +321,19 @@ void CairoTextRender::DrawServerFontLayout( const GenericSalLayout& rLayout, con
...
@@ -321,12 +321,19 @@ void CairoTextRender::DrawServerFontLayout( const GenericSalLayout& rLayout, con
double
ydiff
=
0.0
;
double
ydiff
=
0.0
;
if
(
nGlyphRotation
==
1
)
if
(
nGlyphRotation
==
1
)
{
{
ydiff
=
font_extents
.
ascent
/
nHeight
;
xdiff
=
-
font_extents
.
descent
/
nHeight
;
if
(
SalLayout
::
UseCommonLayout
())
if
(
SalLayout
::
UseCommonLayout
())
{
{
ydiff
-=
font_extents
.
descent
/
nHeight
;
// The y is the origin point position, but Cairo will draw
xdiff
=
0
;
// the glyph *above* that point, we need to move it down to
// the glyph’s baseline.
cairo_text_extents_t
aExt
;
cairo_glyph_extents
(
cr
,
&
cairo_glyphs
[
nStartIndex
],
nLen
,
&
aExt
);
cairo_glyphs
[
nStartIndex
].
y
+=
aExt
.
x_advance
-
aExt
.
height
-
aExt
.
y_bearing
;
}
else
{
ydiff
=
font_extents
.
ascent
/
nHeight
;
xdiff
=
-
font_extents
.
descent
/
nHeight
;
}
}
}
}
else
if
(
nGlyphRotation
==
-
1
)
else
if
(
nGlyphRotation
==
-
1
)
...
...
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