1. An information processing apparatus which sets typeface information used for an input character when the character is newly input in a character string in which typeface information is set for each character, comprising: an acquisition unit adapted to acquire typeface information of a first character and typeface information of a second character, which are located before and after a position of the input character; a first setting unit adapted to, when the typeface information of the first character and the typeface information of the second character acquired by said acquisition unit include the same typeface type, set the typeface type as typeface type information used for the input character; and a second setting unit adapted to, when the typeface information of the first character and the typeface information of the second character acquired by said acquisition unit include different typeface, execute parsing for the character string including the input character, wherein said second setting unit, a) when it is parsed that the input character string is part of words including the first character, sets typeface information used for the input character to the same typeface information of the first character, b) when it is parsed that the input character string is part of words including the second character, sets typeface information used for the input character to the same typeface information of the second character.