1. A method for facilitating execution of an application on an electronic device, comprising: obtaining, at the electronic device, a font file comprising a set of scalable representations of graphical assets used in the application; obtaining, at the electronic device, a layout of a user interface of the application; and providing, by a rendering apparatus executing on a processor in the electronic device, the user interface by performing the following operations: obtaining, from the layout, a mapping of a user-interface element in the user interface to a scalable representation of a graphical asset in the font file; and using the mapping and the scalable representation to render the graphical asset in the user interface based on an attribute of a screen in the electronic device.