1. A method comprising: identifying, by a computer system comprising one or more processors, a font in which text is to be rendered on a display of an electronic device; identifying a first glyph associated with the font; determining that the first glyph comprises a first number of curved portions forming the first glyph; identifying a second glyph associated with the font; determining that the second glyph comprises a second number of curved portions forming the second glyph; determining that the first number of curved portions and the second number of curved portions are within a first range of curved portion values, wherein the first range of curved portion values corresponds to a first glyph category; rendering the first glyph on the display; rendering the second glyph on the display; receiving a request to increase a first contrast of the first glyph; increasing the first contrast by reducing a first grayscale value of the first glyph by an incremental amount, wherein the incremental amount is a numerical value; automatically increasing a second contrast of the second glyph by reducing a second grayscale value of the second glyph by the incremental amount; assigning the reduced first grayscale value to the first glyph in a grayscale mapping table; assigning the reduced second grayscale value to the second glyph in the grayscale mapping table; and generating a font file comprising the first glyph, the second glyph, and the grayscale mapping table.