Just consider the situation that sometimes you may need to draw the text twice with clipping -- when the value of the progress bar is such that the bar ends intersecting the text. Then you need to draw part of the text with inverted (or otherwise changed) colours, just like the default bar does.