| java.lang.Object org.apache.harmony.awt.gl.font.FontFinder
FontFinder | public class FontFinder (Code) | | This class chooses the default font for the given text.
If it finds the character which current font is unable to display
it starts the next font run and looks for the font which is able to
display the current character. It also caches the font mappings
(index in the array containing all fonts) for the characters,
using that fact that scripts are mainly contiguous in the UTF-16 encoding
and there's a high probability that the upper byte will be the same for the
next character as for the previous. This allows to save the space used for the cache.
|
findFontForChar | static Font findFontForChar(char c)(Code) | | Finds the font which is able to display the given character
and saves the font mapping for this character
Parameters: c - - character font |
findFonts | static void findFonts(char text, int runStart, int runLimit, List<Integer> runStarts, Map<Integer, Object> fonts)(Code) | | Assigns default fonts for the given text run.
First three parameters are input, last three are output.
Parameters: text - - given text Parameters: runStart - - start of the text run Parameters: runLimit - - end of the text run Parameters: runStarts - - starts of the resulting font runs Parameters: fonts - - mapping of the font run starts to the fonts |
getDefaultSizeFont | static Font getDefaultSizeFont(int i)(Code) | | Derives the default size font
Parameters: i - - index in the array of all fonts derived font |
|
|