Font's used in mobile applications are stored in images saved in format that supports transparency (.png, .gif). After identifying a character that needed to be printed out, application needs to locate a set of pixels that is a graphical representation of given character.
Additional mapping file provided with a font image, that contains list of all mapped characters, their sizes and positions in the image file allows application quick access to all information. Font Manager is needed to give developer chance to use any font image to generate mapping file, and use both of those sources in the mobile application
Implementation of fontManager implementation is a simple swing based GUI application, that allows user to generate mapping file for given font image file.
It allows to load image, zoom it and scroll through it acordingly, separate each sign by border that determines it's size and position in the image, information that is later on stored in generated .map file.
First phase of implementation - application that allows user to load,display and scroll through image is finished.
Monday, 15 December 2008
Subscribe to:
Posts (Atom)