1. In a digital medium environment to improve image font recognition through use of text localization, a method implemented by one or more computing devices comprising: obtaining a model, by the one or more computing devices, that is trained using machine learning having a loss function that includes a permissible margin of a difference between positive and negative images as applied to a plurality of training images including: an anchor image having text rendered using a corresponding font; the positive image having text that is different than the text of the anchor image or text having one or more applied perturbations; and the negative image having text that is not in the font type predicting a bounding box, automatically and without user intervention by the one or more computing devices, for text in an image received using the obtained model; and generating an indication of the predicted bounding box by the one or more computing devices, the indication usable to specify a region of the image that includes the text having a font to be recognized.