fonts
Resizing Images and fonts
Published by miguelmaugusto on February 02, 2012
Hi!
Is it possible at all to get your images and fonts (loaded from resources) resized as needed according to screen dimensions, using only MAUI? Or do I need to have a folder for WVGA, QVGA, etc?
If it is, how?
Thanks,
Mike
EasyMofCreator - Automated Font File Creation (Windows only)
Published by fpkenton on November 12, 2011
I have written a batch script to simply the creation of the .mof files needed by MoSync. It automates the process of creating .mof files for multiple font styles, sizes, and colours. No more tediously clicking through BMFont dialog windows and repeated calls to mof.exe!
HOW TO USE
Fonts for different resolutions
Published by hyui on October 31, 2011
Hey,
I was wondering how I can handle fonts for different screen resolutions. At the moment I use the existing fonts from MoSync installation (verdana13 up to 20). These looks good in MoSync emulator but way too small on my real android device.
So one solution I had in mind was to generate new and larger fonts and use different sets of fonts depending on screen resolution. However, I don't really like this approach because I then have to have lots of different hard resources for all these fonts. Is this the way to go?
Working With the Device Fonts API
Published by Iraklis Rossis on September 16, 2011
The
font system in MoSync uses a set of functions that create and manage
font handles (that behave like any other MAHandle object), which can
then be used either in the context of maDrawTextW or NativeUI as
needed by the application (Note: MAUI does not support this font
system).
DeviceFontsNativeUI
Published by Iraklis Rossis on September 16, 2011
This example application demonstrates how to count, load, and manage a device fonts for your NativeUI applications.
DeviceFonts
Published by Iraklis Rossis on September 16, 2011
This
example application demonstrates how to count, load, and manage device
fonts for text drawing using maDrawText and maDrawTextW and the Device Fonts API.
Newbie Font question (crash)
Published by Jussi70 on September 05, 2011
Nice library. Just learning to use it.
I have stuck to one error and cannot find solutions from the documentations.
When I try use/create font in my Screen constructor function:
MAUI::Font* font = new MAUI::Font(RES_FONT);
The program crashes when I run it: "Malloc failed. You most likely run out of heap memory. "
I can also see that when compiling I get a warning: "Runtime Warning: data section is too small for the stack, heap & BSS
Creating New Fonts
Published by Sam Pickard on January 15, 2010
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.
Working with Fonts
Published by Niklas Nummelin on January 13, 2010
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.
Share on Facebook
