question: static boolean advanceToFirstFont ( AttributedCharacterIterator aci ) { for ( char ch = aci . first ( ) ; ch != CharacterIterator . DONE ; ch = aci . setIndex ( aci . getRunLimit ( ) ) ) { if ( aci . getAttribute ( TextAttribute . CHAR_REPLACEMENT ) == null ) { return true ; } } return false ; }
target:  When this returns, the ACI's current position will be at the start of the first run which does NOT contain a GraphicAttribute.  If no such run exists the ACI's position will be at the end, and this method will return false.