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
e8526657
Kaydet (Commit)
e8526657
authored
Kas 02, 2017
tarafından
Thorsten Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
QT5 fixup non-qt5 build
Change-Id: Ifea73d81ba3863fd6a99453cb38303eb729f6ff4
üst
efb96db1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
CommonSalLayout.cxx
vcl/source/gdi/CommonSalLayout.cxx
+15
-11
No files found.
vcl/source/gdi/CommonSalLayout.cxx
Dosyayı görüntüle @
e8526657
...
...
@@ -70,8 +70,8 @@ hb_blob_t* getFontTable(hb_face_t* /*face*/, hb_tag_t nTableTag, void* pUserData
}
#else
const
char
*
pBuffer
=
nullptr
;
CommonSalLayout
*
pLayout
=
static_cast
<
CommonSalLayout
*>
(
pUserData
);
#if ENABLE_QT5
CommonSalLayout
*
pLayout
=
static_cast
<
CommonSalLayout
*>
(
pUserData
);
QByteArray
aTable
;
if
(
pLayout
->
mbUseQt5
)
{
...
...
@@ -83,8 +83,9 @@ hb_blob_t* getFontTable(hb_face_t* /*face*/, hb_tag_t nTableTag, void* pUserData
else
#endif
{
FreetypeFont
*
pFont
=
static_cast
<
FreetypeFont
*>
(
pUserData
);
pBuffer
=
reinterpret_cast
<
const
char
*>
(
p
Layout
->
mpFreetype
Font
->
GetTable
(
pTagName
,
&
nLength
)
);
pFont
->
GetTable
(
pTagName
,
&
nLength
)
);
}
#endif
...
...
@@ -256,41 +257,44 @@ CommonSalLayout::CommonSalLayout(const CoreTextStyle& rCoreTextStyle)
#else
#if ENABLE_QT5
CommonSalLayout
::
CommonSalLayout
(
const
FontSelectPattern
&
rFSP
,
FreetypeFont
*
pFreetypeFont
,
Qt5Font
*
pQt5Font
,
bool
bUseQt5
)
:
mrFontSelData
(
rFSP
)
,
mpFreetypeFont
(
pFreetypeFont
)
#if ENABLE_QT5
,
mbUseQt5
(
bUseQt5
)
,
mpQFont
(
pQt5Font
)
#endif
,
mpVertGlyphs
(
nullptr
)
{
#if ENABLE_QT5
if
(
mbUseQt5
)
mpHbFont
=
mpQFont
->
GetHbFont
();
else
#endif
mpHbFont
=
mpFreetypeFont
->
GetHbFont
();
if
(
!
mpHbFont
)
{
hb_face_t
*
pHbFace
=
hb_face_create_for_tables
(
getFontTable
,
this
,
nullptr
);
mpHbFont
=
createHbFont
(
pHbFace
);
#if ENABLE_QT5
if
(
mbUseQt5
)
mpQFont
->
SetHbFont
(
mpHbFont
);
else
#endif
mpFreetypeFont
->
SetHbFont
(
mpHbFont
);
}
}
#endif
CommonSalLayout
::
CommonSalLayout
(
FreetypeFont
&
rFreetypeFont
)
:
CommonSalLayout
(
rFreetypeFont
.
GetFontSelData
(),
&
rFreetypeFont
,
nullptr
,
false
)
CommonSalLayout
::
CommonSalLayout
(
FreetypeFont
&
rFreetypeFont
)
:
mrFontSelData
(
rFreetypeFont
.
GetFontSelData
())
,
mpFreetypeFont
(
&
rFreetypeFont
)
,
mpVertGlyphs
(
nullptr
)
{
mpHbFont
=
rFreetypeFont
.
GetHbFont
();
if
(
!
mpHbFont
)
{
hb_face_t
*
pHbFace
=
hb_face_create_for_tables
(
getFontTable
,
&
rFreetypeFont
,
nullptr
);
mpHbFont
=
createHbFont
(
pHbFace
);
}
}
#if ENABLE_QT5
...
...
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