Method and device for adding font
AssigneeXiaomi Inc.
InventorsYi Gao, Hongqiang Wang, Yunyuan Ge
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a method and a device for adding a font. The method includes: acquiring an image; recognizing text in the image as at least one character, each character being a font file corresponding to a single word or a single symbol; and adding a recognized character to a system font library, the system font library including characters used for displaying text on a user interface.
Claims12
A method performed by a terminal, comprising:
- acquiring an image;
- recognizing text in the image as at least one character, each character being a font file corresponding to a single word or a single symbol;
- and
- adding a recognized character to a system font library, the system font library including characters used for displaying text on a user interface,
- wherein the adding of the recognized character to the system font library comprises:
- recognizing, from the system font library, at least one standard character candidate corresponding to the recognized character;
- receiving a character selecting operation on the at least one standard character candidate, the character selecting operation selecting a standard character candidate, the selected standard character candidate and the recognized having different fonts;
- and
- replacing, in the system font library, the selected standard character candidate with the recognized character.
A device for adding a font, comprising:
- a processor;
- and
- a memory for storing instructions executable by the processor;
- wherein the processor is configured to perform:
- acquiring an image;
- recognizing text in the image as at least one character, each character being a font file corresponding to a single word or a single symbol;
- and
- adding a recognized character to a system font library, the system font library including characters used for displaying text on a user interface, and
- wherein in adding the recognized character to the system font library, the processor is further configured to perform:
- recognizing, from the system font library, at least one standard character candidate corresponding to the recognized character;
- receiving a character selecting operation on the at least one standard character candidate, the character selecting operation selecting a standard character candidate, the selected standard character candidate and the recognized having different fonts;
- and
- replacing, in the system font library, the selected standard character candidate with the recognized character.
A non-transitory computer-readable storage medium storing instructions that, when executed by a processor of a device, cause the device to perform a method for adding a font, the method comprising:
- acquiring an image;
- recognizing text in the image as at least one character, each character being a font file corresponding to a single word or a single symbol;
- and
- adding a recognized character to a system font library, the system font library including characters used for displaying text on a user interface,
- wherein the adding of the recognized character to the system font library comprises:
- recognizing, from the system font library, at least one standard character candidate corresponding to the recognized character;
- receiving a character selecting operation on the at least one standard character candidate, the character selecting operation selecting a standard character candidate, the selected standard character candidate and the recognized having different fonts;
- and
- replacing, in the system font library, the selected standard character candidate with the recognized character.
Dependencies are inferred from the claim text.