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
e3429c50
Kaydet (Commit)
e3429c50
authored
Eki 09, 2016
tarafından
Khaled Hosny
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Just call ICU directly and cut the middle layers
Change-Id: I7603d03fef8ca227c3e6fe25239281d18801522a
üst
f353cf9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
CommonSalLayout.cxx
vcl/source/gdi/CommonSalLayout.cxx
+6
-6
No files found.
vcl/source/gdi/CommonSalLayout.cxx
Dosyayı görüntüle @
e3429c50
...
...
@@ -25,6 +25,7 @@
#include <i18nlangtag/mslangid.hxx>
#include <limits>
#include <salgdi.hxx>
#include <unicode/uchar.h>
#if defined(_WIN32)
struct
WinSalGraphicsWithIDFace
...
...
@@ -116,14 +117,14 @@ static void scaleHbFont(hb_font_t* pHbFont, const FontSelectPattern& aFontSelDat
hb_font_set_scale
(
pHbFont
,
nXScale
,
nYScale
);
}
#if !HB_VERSION_ATLEAST(1, 1, 0)
static
hb_unicode_funcs_t
*
getUnicodeFuncs
()
{
static
hb_unicode_funcs_t
*
ufuncs
=
hb_unicode_funcs_create
(
hb_icu_get_unicode_funcs
());
#if !HB_VERSION_ATLEAST(1, 1, 0)
hb_unicode_funcs_set_decompose_compatibility_func
(
ufuncs
,
unicodeDecomposeCompatibility
,
nullptr
,
nullptr
);
#endif
return
ufuncs
;
}
#endif
#if defined(_WIN32)
CommonSalLayout
::
CommonSalLayout
(
WinSalGraphics
*
WSL
,
WinFontInstance
&
rWinFontInstance
,
const
WinFontFace
&
rWinFontFace
)
...
...
@@ -382,8 +383,8 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
nHbFlags
|=
HB_BUFFER_FLAG_EOT
;
/* End-of-text */
hb_buffer_t
*
pHbBuffer
=
hb_buffer_create
();
static
hb_unicode_funcs_t
*
pHbUnicodeFuncs
=
getUnicodeFuncs
();
#if !HB_VERSION_ATLEAST(1, 1, 0)
static
hb_unicode_funcs_t
*
pHbUnicodeFuncs
=
getUnicodeFuncs
();
hb_buffer_set_unicode_funcs
(
pHbBuffer
,
pHbUnicodeFuncs
);
#endif
hb_buffer_set_direction
(
pHbBuffer
,
bRightToLeft
?
HB_DIRECTION_RTL
:
HB_DIRECTION_LTR
);
...
...
@@ -439,7 +440,7 @@ bool CommonSalLayout::LayoutText(ImplLayoutArgs& rArgs)
else
{
#if HB_VERSION_ATLEAST(0, 9, 42)
if
(
hb_unicode_general_category
(
pHbUnicodeFuncs
,
aChar
)
==
HB_UNICODE_GENERAL_CATEGORY
_NON_SPACING_MARK
)
if
(
u_getIntPropertyValue
(
aChar
,
UCHAR_GENERAL_CATEGORY
)
==
U
_NON_SPACING_MARK
)
bDiacritic
=
true
;
#else
// the font lacks GDEF table
...
...
@@ -599,8 +600,7 @@ void CommonSalLayout::ApplyDXArray(ImplLayoutArgs& rArgs)
// Don’t insert Kashida after space.
sal_Int32
indexUtf16
=
pGlyphIter
->
mnCharPos
;
sal_UCS4
aChar
=
rArgs
.
mrStr
.
iterateCodePoints
(
&
indexUtf16
,
0
);
static
hb_unicode_funcs_t
*
pHbUnicodeFuncs
=
getUnicodeFuncs
();
if
(
hb_unicode_general_category
(
pHbUnicodeFuncs
,
aChar
)
==
HB_UNICODE_GENERAL_CATEGORY_SPACE_SEPARATOR
)
if
(
u_isUWhiteSpace
(
aChar
))
continue
;
// The total Kashida width.
...
...
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