Kaydet (Commit) f91e008c authored tarafından Caolán McNamara's avatar Caolán McNamara

older icu's appear to have the features, but not the typedefs

Change-Id: Ic17ffb49e7f143366c9c200d1c04b0536f2222b4
üst e8b79f29
......@@ -312,10 +312,17 @@ static bool lcl_CharIsJoiner(sal_Unicode cChar)
bool IcuLayoutEngine::layout(ServerFontLayout& rLayout, ImplLayoutArgs& rArgs)
{
le_int32 nLayoutFlags = 0;
#if (U_ICU_VERSION_MAJOR_NUM > 4)
if (rArgs.mnFlags & SAL_LAYOUT_KERNING_PAIRS)
nLayoutFlags |= LayoutEngine::kTypoFlagKern;
if (rArgs.mnFlags & SAL_LAYOUT_ENABLE_LIGATURES)
nLayoutFlags |= LayoutEngine::kTypoFlagLiga;
#else
if (rArgs.mnFlags & SAL_LAYOUT_KERNING_PAIRS)
nLayoutFlags |= 0x01;
if (rArgs.mnFlags & SAL_LAYOUT_ENABLE_LIGATURES)
nLayoutFlags |= 0x10;
#endif
LEUnicode* pIcuChars;
if( sizeof(LEUnicode) == sizeof(*rArgs.mpStr) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment