A method for facilitating execution of an application on an electronic device having a display screen ; one or more processors ; and memory storing instructions that, when executed by the one or more processors, cause the apparatus electronic device to become configured to carry out the following steps, the method comprising: obtaining a layout of a user interface of an application; obtaining , from the layout, a mapping of a user-interface element in the user interface to a vector image representation of a graphical asset in a font file comprising a set of vector image representations of graphical assets used in the application, wherein the mapping includes a first attribute that identifies the font file ; obtaining the font file from a plurality of font files using the first attribute; identifying a style of the graphical asset by using one or more additional attributes of the mapping , wherein the style describes a relative size of the graphical asset with respect to other graphical assets in the user interface, and the relative size of the graphical asset is represented by a number of density-independent pixels; selecting a font size of the graphical asset based on the attribute of the display screen and the relative size of the graphical asset defined by the style such that the graphical asset occupies the number of density-independent pixels specified by the relative size obtained from the style, wherein the attribute of the screen comprises a screen density, resolution and screen size; using a second attribute of the mapping to obtain the vector image representation of the graphical asset from the font file; and using the vector image representation to render the graphical asset in the selected font size in the user interface. obtaining a layout of a user interface of an application; obtaining , from the layout, a mapping of a user-interface element in the user interface to a vector image representation of a graphical asset in a font file comprising a set of vector image representations of graphical assets used in the application, wherein the mapping includes a first attribute that identifies the font file ; obtaining the font file from a plurality of font files using the first attribute; identifying a style of the graphical asset by using one or more additional attributes of the mapping , wherein the style describes a relative size of the graphical asset with respect to other graphical assets in the user interface, and the relative size of the graphical asset is represented by a number of density-independent pixels; selecting a font size of the graphical asset based on the attribute of the display screen and the relative size of the graphical asset defined by the style such that the graphical asset occupies the number of density-independent pixels specified by the relative size obtained from the style, wherein the attribute of the screen comprises a screen density, resolution and screen size; using a second attribute of the mapping to obtain the vector image representation of the graphical asset from the font file; and using the vector image representation to render the graphical asset in the selected font size in the user interface. <EOS>