1. A method for operating a device comprising a screen, comprising: obtaining, by the device, a first background image of an environment behind the screen; obtaining, by the device, an electronic document (ED) comprising a text character with an initial text color and a graphic; generating a rendered version of the ED comprising a first plurality of pixels corresponding to the text character and a second plurality of pixels corresponding to the graphic; generating, from the rendered version of the ED, a text tag bit (TTB) plane comprising a first plurality of cells corresponding to the first plurality of pixels and a second plurality of cells corresponding to the second plurality of pixels, wherein each of the first plurality of cells stores a first value in response to the cell corresponding to the text character, and wherein each of the second plurality of cells stores a second value in response to the cell corresponding to the graphic; identifying, by applying the TTB plane to the first background image, at least: a first plurality of pixels in the first background image corresponding to the text character; and a second plurality of pixels in the first background image corresponding to the graphic, wherein the first plurality of pixels in the first background image intersect with the first plurality of cells in the TTB, and wherein the second plurality of pixels in the first background image intersect with the second plurality of cells in the TTB; determining, by the device, a first final text color based on the initial text color and the first plurality of pixels in the first background image; generating an overlay image by: setting the first plurality of pixels in the first background image to the first final text color, wherein the first plurality of pixels set to the first final text color forms the text character and are opaque; and setting the second plurality of pixels in the first background image to transparent; and simultaneously displaying, by the device and on the screen, the overlay image and the rendered version of the ED, wherein the overlay image and the rendered version of the ED are different layers and the overlay image is overlaid on top of the rendered version of the ED, wherein the graphic in the rendered version of the ED is visible through the second plurality of pixels in the overlay image that are transparent, wherein the text character in the overlay image is opaque and covers the same text character in the rendered version of the ED, and wherein in a final presentation to a user, the environment behind the screen is overlaid with the rendered version of the ED overlaid with the overlay image.