private static final double getPositionNearTarget( int amountOfPixelsAway, TextStrategyParameters parameters ) {
		double length = parameters.getPath().getTotalLength();
		if( length == 0 ) {
			return 1;
		}
		double position = 1.0 - amountOfPixelsAway / length;
		return Math.max( 0.5, Math.min( 1, position ) );
	}