An information processing apparatus includes a display acquisition unit including a display screen which displays information to a user, and an acquisition unit configured to acquire an input pattern written by the user, a storage unit which prestores, as a registered pattern, a pattern corresponding to the input pattern, a comparison unit configured to compare a shape and orientation of the input pattern with a shape and orientation of the registered pattern, a computation unit configured to compute a degree of difference between the orientation of the input pattern and the orientation of the registered pattern, and a selection unit configured to select a display orientation of a display target corresponding to the input pattern, displayed on the display screen, from a plurality of display orientations determined by a shape of the information processing apparatus, based on the computed degree of difference.