Hi and welcome to devnet, What about painting a partially transparent rectangle over the part of the text that should be highlighted ? You could draw the text first and then the rectangle over. Hope it helps