java.lang.Object
gnu.java.awt.peer.ClasspathFontPeer
gnu.java.awt.peer.gtk.GtkFontPeer
- All Implemented Interfaces:
- java.awt.peer.FontPeer
- public class GtkFontPeer
- extends gnu.java.awt.peer.ClasspathFontPeer
|
Method Summary |
boolean |
canDisplay(java.awt.Font font,
char c)
Implementation of Font.canDisplay(char)>Font.canDisplay(char) 55 |
int |
canDisplayUpTo(java.awt.Font font,
java.text.CharacterIterator i,
int start,
int limit)
Implementation of Font#canDisplay(String),
Font#canDisplay(char [], int, int), and
Font#canDisplay(CharacterIterator, int, int). |
java.awt.font.GlyphVector |
createGlyphVector(java.awt.Font font,
java.awt.font.FontRenderContext frc,
java.text.CharacterIterator ci)
Implementation of Font.createGlyphVector(FontRenderContext, String)>Font.createGlyphVector(FontRenderContext, String) 55 , Font.createGlyphVector(FontRenderContext, char[])>Font.createGlyphVector(FontRenderContext, char[]) 55 , and Font.createGlyphVector(FontRenderContext, CharacterIterator)>Font.createGlyphVector(FontRenderContext, CharacterIterator) 55 . |
java.awt.font.GlyphVector |
createGlyphVector(java.awt.Font font,
java.awt.font.FontRenderContext ctx,
int[] glyphCodes)
Implementation of Font.createGlyphVector(FontRenderContext,
int[])>Font.createGlyphVector(FontRenderContext,
int[]) 55 . |
byte |
getBaselineFor(java.awt.Font font,
char c)
Implementation of Font.getBaselineFor(char)>Font.getBaselineFor(char) 55 |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
Implementation of Font#getFontMetrics() |
java.lang.String |
getGlyphName(java.awt.Font font,
int glyphIndex)
Returns a name for the specified glyph. |
java.awt.font.LineMetrics |
getLineMetrics(java.awt.Font font,
java.text.CharacterIterator ci,
int begin,
int limit,
java.awt.font.FontRenderContext rc)
Implementation of Font.getLineMetrics(CharacterIterator, int,
int, FontRenderContext)>Font.getLineMetrics(CharacterIterator, int,
int, FontRenderContext) 55 |
java.awt.geom.Rectangle2D |
getMaxCharBounds(java.awt.Font font,
java.awt.font.FontRenderContext rc)
Implementation of Font.getMaxCharBounds(FontRenderContext)>Font.getMaxCharBounds(FontRenderContext) 55 |
int |
getMissingGlyphCode(java.awt.Font font)
Implementation of Font.getMissingGlyphCode()>Font.getMissingGlyphCode() 55 |
int |
getNumGlyphs(java.awt.Font font)
Implementation of Font.getNumGlyphs()>Font.getNumGlyphs() 55 |
java.lang.String |
getPostScriptName(java.awt.Font font)
Implementation of Font.getPSName()>Font.getPSName() 55 |
java.awt.geom.Rectangle2D |
getStringBounds(java.awt.Font font,
java.text.CharacterIterator ci,
int begin,
int limit,
java.awt.font.FontRenderContext frc)
Implementation of Font.getStringBounds(CharacterIterator, int,
int, FontRenderContext)>Font.getStringBounds(CharacterIterator, int,
int, FontRenderContext) 55 |
java.lang.String |
getSubFamilyName(java.awt.Font font,
java.util.Locale locale)
Returns the name of this font face inside the family, for example
“Light”. |
java.lang.String |
getXLFD()
|
boolean |
hasUniformLineMetrics(java.awt.Font font)
Implementation of Font.hasUniformLineMetrics()>Font.hasUniformLineMetrics() 55 |
java.awt.font.GlyphVector |
layoutGlyphVector(java.awt.Font font,
java.awt.font.FontRenderContext frc,
char[] chars,
int start,
int limit,
int flags)
Implementation of Font.layoutGlyphVector(FontRenderContext,
char[], int, int, int)>Font.layoutGlyphVector(FontRenderContext,
char[], int, int, int) 55 . |
| Methods inherited from class gnu.java.awt.peer.ClasspathFontPeer |
copyFamilyToAttrs, copySizeToAttrs, copyStyleToAttrs, copyTransformToAttrs, deriveFont, deriveFont, deriveFont, deriveFont, deriveFont, deriveFont, faceNameToFamilyName, getAttributes, getAvailableAttributes, getFamily, getFamily, getFontName, getFontName, getItalicAngle, getName, getSize, getStandardAttributes, getStyle, getTransform, isBold, isItalic, isLogicalFontName, isPlain, isTransformed, logicalFontNameToFaceName, setStandardAttributes, setStandardAttributes, tk |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bundle
private static java.util.ResourceBundle bundle
Xname
private final java.lang.String Xname
GtkFontPeer
public GtkFontPeer(java.lang.String name,
int style)
GtkFontPeer
public GtkFontPeer(java.lang.String name,
int style,
int size)
getXLFD
public java.lang.String getXLFD()
canDisplay
public boolean canDisplay(java.awt.Font font,
char c)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.canDisplay(char)>
Font.canDisplay(char) 55
canDisplayUpTo
public int canDisplayUpTo(java.awt.Font font,
java.text.CharacterIterator i,
int start,
int limit)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of
Font#canDisplay(String),
Font#canDisplay(char [], int, int), and
Font#canDisplay(CharacterIterator, int, int).
getSubFamilyName
public java.lang.String getSubFamilyName(java.awt.Font font,
java.util.Locale locale)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Returns the name of this font face inside the family, for example
“Light”.
This method is currently not used by java.awt.Font. However,
this name would be needed by any serious desktop publishing
application.
getPostScriptName
public java.lang.String getPostScriptName(java.awt.Font font)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.getPSName()>
Font.getPSName() 55
getNumGlyphs
public int getNumGlyphs(java.awt.Font font)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.getNumGlyphs()>
Font.getNumGlyphs() 55
getMissingGlyphCode
public int getMissingGlyphCode(java.awt.Font font)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.getMissingGlyphCode()>
Font.getMissingGlyphCode() 55
getBaselineFor
public byte getBaselineFor(java.awt.Font font,
char c)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.getBaselineFor(char)>
Font.getBaselineFor(char) 55
getGlyphName
public java.lang.String getGlyphName(java.awt.Font font,
int glyphIndex)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Returns a name for the specified glyph. This is useful for
generating PostScript or PDF files that embed some glyphs of a
font. If the implementation follows glyph naming conventions
specified by Adobe, search engines can extract the original text
from the generated PostScript and PDF files.
This method is currently not used by GNU Classpath. However,
it would be very useful for someone wishing to write a good
PostScript or PDF stream provider for the
javax.print package.
Names are not unique: Under some rare circumstances,
the same name can be returned for different glyphs. It is
therefore recommended that printer drivers check whether the same
name has already been returned for antoher glyph, and make the
name unique by adding the string ".alt" followed by the glyph
index.
This situation would occur for an OpenType or TrueType font
that has a post table of format 3 and provides a
mapping from glyph IDs to Unicode sequences through a
Zapf table. If the same sequence of Unicode
codepoints leads to different glyphs (depending on contextual
position, for example, or on typographic sophistication level),
the same name would get synthesized for those glyphs. To avoid
this, the font peer would have to go through the names of all
glyphs, which would make this operation very inefficient with
large fonts.
createGlyphVector
public java.awt.font.GlyphVector createGlyphVector(java.awt.Font font,
java.awt.font.FontRenderContext frc,
java.text.CharacterIterator ci)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.createGlyphVector(FontRenderContext, String)>
Font.createGlyphVector(FontRenderContext, String) 55 , Font.createGlyphVector(FontRenderContext, char[])>Font.createGlyphVector(FontRenderContext, char[]) 55 , and Font.createGlyphVector(FontRenderContext, CharacterIterator)>Font.createGlyphVector(FontRenderContext, CharacterIterator) 55 .
createGlyphVector
public java.awt.font.GlyphVector createGlyphVector(java.awt.Font font,
java.awt.font.FontRenderContext ctx,
int[] glyphCodes)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.createGlyphVector(FontRenderContext,
int[])>
Font.createGlyphVector(FontRenderContext,
int[]) 55 .
layoutGlyphVector
public java.awt.font.GlyphVector layoutGlyphVector(java.awt.Font font,
java.awt.font.FontRenderContext frc,
char[] chars,
int start,
int limit,
int flags)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.layoutGlyphVector(FontRenderContext,
char[], int, int, int)>
Font.layoutGlyphVector(FontRenderContext,
char[], int, int, int) 55 .
getFontMetrics
public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of
Font#getFontMetrics()
hasUniformLineMetrics
public boolean hasUniformLineMetrics(java.awt.Font font)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.hasUniformLineMetrics()>
Font.hasUniformLineMetrics() 55
getLineMetrics
public java.awt.font.LineMetrics getLineMetrics(java.awt.Font font,
java.text.CharacterIterator ci,
int begin,
int limit,
java.awt.font.FontRenderContext rc)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.getLineMetrics(CharacterIterator, int,
int, FontRenderContext)>
Font.getLineMetrics(CharacterIterator, int,
int, FontRenderContext) 55
getMaxCharBounds
public java.awt.geom.Rectangle2D getMaxCharBounds(java.awt.Font font,
java.awt.font.FontRenderContext rc)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.getMaxCharBounds(FontRenderContext)>
Font.getMaxCharBounds(FontRenderContext) 55
getStringBounds
public java.awt.geom.Rectangle2D getStringBounds(java.awt.Font font,
java.text.CharacterIterator ci,
int begin,
int limit,
java.awt.font.FontRenderContext frc)
- Description copied from class:
gnu.java.awt.peer.ClasspathFontPeer
- Implementation of Font.getStringBounds(CharacterIterator, int,
int, FontRenderContext)>
Font.getStringBounds(CharacterIterator, int,
int, FontRenderContext) 55