src/share/classes/java/awt/font/TextLayout.java
Print this page
*** 1809,1819 ****
/**
* Return the "stronger" of the TextHitInfos. The TextHitInfos
* should be logical or visual counterparts. They are not
* checked for validity.
*/
! private final TextHitInfo getStrongHit(TextHitInfo hit1, TextHitInfo hit2) {
// right now we're using the following rule for strong hits:
// A hit on a character with a lower level
// is stronger than one on a character with a higher level.
// If this rule ties, the hit on the leading edge of a character wins.
--- 1809,1819 ----
/**
* Return the "stronger" of the TextHitInfos. The TextHitInfos
* should be logical or visual counterparts. They are not
* checked for validity.
*/
! private TextHitInfo getStrongHit(TextHitInfo hit1, TextHitInfo hit2) {
// right now we're using the following rule for strong hits:
// A hit on a character with a lower level
// is stronger than one on a character with a higher level.
// If this rule ties, the hit on the leading edge of a character wins.