1. A method for displaying a character produced by an electronic device that comprises a display, wherein the method is executed by the electronic device, comprising: obtaining a display color value of a character; obtaining a background color value of the character according to a position of the character; obtaining a difference between the display color value and the background color value; obtaining an outline of the character when the difference is smaller than a preset threshold; and displaying the character that has the outline on the display; wherein obtaining the background color value of the character according to the position of the character comprises obtaining color values of multiple background points of the character according to the position of the character, and wherein obtaining the difference between the display color value and the background color value comprises: obtaining a standard difference between the display color value and a color value of each of the multiple background points; and obtaining a minimum standard difference in the standard difference.