| java.lang.Object org.apache.harmony.awt.gl.font.FontPeerImpl org.apache.harmony.awt.gl.font.LinuxFont
LinuxFont | public class LinuxFont extends FontPeerImpl (Code) | | Linux platform font peer implementation based on Xft and FreeType libraries.
|
Constructor Summary | |
public | LinuxFont(String fontName, int fontStyle, int fontSize) |
LinuxFont | public LinuxFont(String fontName, int fontStyle, int fontSize)(Code) | | |
addGlyph | public boolean addGlyph(char uChar)(Code) | | Add glyph to cached Glyph objects in this LinuxFont object.
Parameters: uChar - the specified character true if glyph of the specified character exists in thisLinuxFont or this character is escape sequence character. |
addGlyphs | public void addGlyphs(char uFirst, char uLast)(Code) | | Adds range of existing glyphs to this LinuxFont object
Parameters: uFirst - the lowest range's bound, inclusive Parameters: uLast - the highest range's bound, exclusive |
canDisplay | public boolean canDisplay(char chr)(Code) | | |
dispose | public void dispose()(Code) | | Disposes native font handle. If this font peer was created from InputStream
temporary created font resource file is deleted.
|
embedFont | public static Font embedFont(String absolutePath) throws IOException(Code) | | Return Font object if it was successfully embedded in System
|
getExtraMetrics | public FontExtraMetrics getExtraMetrics()(Code) | | Returns initiated FontExtraMetrics instance of this WindowsFont.
|
getFontHandle | public long getFontHandle(boolean isAntialiased)(Code) | | Returns native font handle of this font peer.
|
getMissingGlyphCode | public int getMissingGlyphCode()(Code) | | |
getUnicodeRanges | public int[] getUnicodeRanges()(Code) | | Returns an array of unicode ranges that are supported by this LinuxFont.
|
initLinuxFont | public void initLinuxFont()(Code) | | Initializes some native dependent font information, e.g. number of glyphs,
font metrics, italic angle etc.
|
isGlyphExists | public boolean isGlyphExists(char uIndex)(Code) | | Returns true if specified character has corresopnding glyph, false otherwise.
Parameters: uIndex - specified char |
|
|