textrendering/textformatting/tagma/TMGLYPH.CPP
branchRCL_3
changeset 28 26914f8d1faf
parent 0 1fb32624e06b
child 44 601ab138ba0b
equal deleted inserted replaced
25:1799ab513ec3 28:26914f8d1faf
   461 			prevChar = iSource.Map(text[0]);
   461 			prevChar = iSource.Map(text[0]);
   462 			}
   462 			}
   463 		if (CFont::CharactersJoin(
   463 		if (CFont::CharactersJoin(
   464 			aDirectionality == ELeftToRight? prevChar : c,
   464 			aDirectionality == ELeftToRight? prevChar : c,
   465 			aDirectionality == ELeftToRight? c : prevChar)
   465 			aDirectionality == ELeftToRight? c : prevChar)
   466 			&& format.iFontSpec == prevFormat.iFontSpec)
   466 			&& format == prevFormat)
   467 			// Characters join at the beginning.
   467 			// Characters join at the beginning.
   468 			*output = KZeroWidthJoiner;
   468 			*output = KZeroWidthJoiner;
   469 		}
   469 		}
   470 
   470 
   471 	output = aBuffer + 1;
   471 	output = aBuffer + 1;
   528 			GetText(aStart, aStart + 1, text, &nextFormat);
   528 			GetText(aStart, aStart + 1, text, &nextFormat);
   529 			TInt nextChar = iSource.Map(text[0]);
   529 			TInt nextChar = iSource.Map(text[0]);
   530 			if (CFont::CharactersJoin(
   530 			if (CFont::CharactersJoin(
   531 				aDirectionality == ELeftToRight? *prev : nextChar,
   531 				aDirectionality == ELeftToRight? *prev : nextChar,
   532 				aDirectionality == ELeftToRight? nextChar : *prev)
   532 				aDirectionality == ELeftToRight? nextChar : *prev)
   533 				&& format.iFontSpec == nextFormat.iFontSpec)
   533 				&& format == nextFormat)
   534 				// Characters join at the end.
   534 				// Characters join at the end.
   535 				*output = KZeroWidthJoiner;
   535 				*output = KZeroWidthJoiner;
   536 			}
   536 			}
   537 		}
   537 		}
   538 
   538