Patent attributes
Automatic switching of fonts on multilingual text runs in one action is provided. After an indication that a new font scheme is to be applied to a multilingual text selection, a client application passes a language identification for each of the multilingual text runs, a major/minor font designation for each text run, a script identification for each text run, if available, and the selected new font scheme to a font scheme application programming interface (API). The font scheme API converts the received language identification to a script identification for each multilingual text run and maps the resulting script identifications to appropriate fonts associated with the selected font scheme for each of the multilingual text runs. Fonts retrieved for each language text run are returned to the client application for rendering the multilingual text runs according to the respective fonts applicable to the selected font scheme.