Renders a region of text based on the offset information provided.
The startOffset and endOffset are both inclusive, for example, with
startOffset of 1 and endOffset of 5, renderOffets will render 5 characters.
startOffset - the offset to start rendering from (inclusive)
endOffset - the last offset to render (inclusive)
StyledFragmentsList for rendering the given region