jdk/src/java.desktop/share/classes/java/awt/font/TextLayout.java
changeset 26037 508779ce6619
parent 26004 7507a1b93f67
parent 25859 3317bb8137f4
child 26749 b6598aa90114
equal deleted inserted replaced
25992:e9b05e933ddd 26037:508779ce6619
  1809     /**
  1809     /**
  1810      * Return the "stronger" of the TextHitInfos.  The TextHitInfos
  1810      * Return the "stronger" of the TextHitInfos.  The TextHitInfos
  1811      * should be logical or visual counterparts.  They are not
  1811      * should be logical or visual counterparts.  They are not
  1812      * checked for validity.
  1812      * checked for validity.
  1813      */
  1813      */
  1814     private final TextHitInfo getStrongHit(TextHitInfo hit1, TextHitInfo hit2) {
  1814     private TextHitInfo getStrongHit(TextHitInfo hit1, TextHitInfo hit2) {
  1815 
  1815 
  1816         // right now we're using the following rule for strong hits:
  1816         // right now we're using the following rule for strong hits:
  1817         // A hit on a character with a lower level
  1817         // A hit on a character with a lower level
  1818         // is stronger than one on a character with a higher level.
  1818         // is stronger than one on a character with a higher level.
  1819         // If this rule ties, the hit on the leading edge of a character wins.
  1819         // If this rule ties, the hit on the leading edge of a character wins.