Cross-platform SDK and HTML5 tools for mobile app development
X
 

Fonts

Coding Guides

  • Creating New Fonts in MAUI

    The MAUI user interface components use bitmap fonts in its own format. These files are converted from a specific, but common, format for bitmap fonts. The MoSync download comes supplied with a freeware tool called BMFont for creating bitmap fonts from the fonts installed in Windows. MoSync developers can use BMFont to create their own fonts for use in their applications.

  • The Device Fonts C API

    The Device Font C API provides a set of syscall functions that create and manage font handles. The font handles behave like any other MAHandle object and can be used either in the context of maDrawTextW or NativeUI as needed by the application (Note that MAUI does not support this font system). 

  • Working with Fonts in MAUI

    The MAUI::Font class draws text using bitmap fonts defined in a mof-file. In this guide we show how to convert a bitmap font to a mof-file, and how to add the file as a resource to a MoSync project. We then create a MAUI::Font instance and draw some text with it.

Example Apps

  • DeviceFonts

    This example application demonstrates how to count, load, and manage device fonts for text drawing using maDrawText and maDrawTextW and the Device Fonts API.

  • DeviceFontsNativeUI

    This example application demonstrates how to count, load, and manage a device fonts for your NativeUI applications.