1. An information processing apparatus which sets font information used for an input character when the character is newly input in a character string in which font information is set for each character, comprising: acquisition means for acquiring font information of a first character and font information of a second character, which are located before and after a position of the input character; first setting means for, when the font information of the first character and the font information of the second character acquired by said acquisition means include the same font type, setting the font type as font type information used for the input character; and second setting means for, when the font information of the first character and the font information of the second character acquired by said acquisition means include different font types, executing parsing for the character string including the input character, and setting font type information used for the input character based on the parsing result.