Answer the question
In order to leave comments, you need to log in
What font do I get when using the Font.getFont() method in Java2ME?
I am using library - javax.microedition.lcdui.Font
method - getFont(int face, int style, int size);
As described in the documentation, the following options are available:
face - FACE_SYSTEM, FACE_MONOSPACE, FACE_PROPORTIONAL;
style - STYLE_PLAIN, or a combination of STYLE_BOLD, STYLE_ITALIC, and STYLE_UNDERLINED;
size - SIZE_SMALL, SIZE_MEDIUM, SIZE_LARGE;
For example - Font proportionalFont = Font.getFont(64, 0, 8); (FACE_PROPORTIONAL, STYLE_PLAIN, SIZE_SMALL)
In this case, how to find out the name of the font that the method eventually returns?
Oracle support told me that the font depends on the platform being used.
Suppose I am using Nokia N71, Nokia E51 mobile phones and emulators in Sun Java Wireless Toolkit 2.5.2.
How do I get these names of these fonts? Can I get them as a .ttf file?
Answer the question
In order to leave comments, you need to log in
As a former ME'shnik and who saw a bunch of mobile phones with my own eyes, I will say ...
There is no standard. Nokia had three fonts with all styles. Motorola - only one, without any inscriptions. TTF is usually not, fonts are usually dotted. TTF - if it's there TTF - can, of course, be extracted from the phone's firmware, but not programmatically on ME.
N71, E51… I remember phones, there was a case…
If you needed a wide port and a uniform look on different mobile phones, they usually wrote their own typographic engine.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question