|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object crystalspace.jbind.impl.csNativeObject crystalspace.jbind.impl.csutil.scf.csBase crystalspace.jbind.impl.video.fontserv.csFont
Field Summary |
Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
Constructor Summary | |
csFont(iPointer nPointer)
|
Method Summary | |
void |
addDeleteCallback(iFontDeleteNotify func)
Add a font delete notification callback routine. |
int |
getAscent()
Get the font's ascent in pixels. |
int |
getDescent()
Get the font's descent in pixels. |
int[] |
getDimensions(java.lang.String text)
Return the width and height of text written with this font. desc gives the maximum descender. |
iDataBuffer |
getGlyphAlphaBitmap(int c,
csBitmapMetrics metrics)
Return a pointer to a bitmap containing the alpha bitmap for the rendered character. |
iDataBuffer |
getGlyphBitmap(int c,
csBitmapMetrics metrics)
Return a pointer to a bitmap containing a rendered character. |
boolean |
getGlyphMetrics(int c,
csGlyphMetrics metrics)
Return the metrics of a glyph. |
int |
getLength(java.lang.String text,
int maxwidth)
Determine how many characters from this string can be written without exceeding given width (in pixels);. |
int[] |
getMaxSize()
Return the maximum width and height of a single glyph, in pixels. |
java.lang.String |
getName()
Return the name of the interface |
int |
getSize()
Query current font size in Point. |
int |
getVersion()
Return the version of the interface |
boolean |
hasGlyph(int c)
Returns whether a specific glyph is present in this font. |
protected boolean |
isNativePointerValidSafe(long pointer)
|
boolean |
removeDeleteCallback(iFontDeleteNotify func)
Remove a font delete notification callback. |
void |
setSize(int iSize)
Set the size for this font in Point. |
Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Constructor Detail |
public csFont(iPointer nPointer)
nPointer
- Method Detail |
public int getVersion()
iBase
getVersion
in interface iBase
getVersion
in class csBase
iBase.getVersion()
public java.lang.String getName()
iBase
getName
in interface iBase
getName
in class csBase
iBase.getName()
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe
in class csNativeObject
csNativeObject.isNativePointerValidSafe(long)
public void addDeleteCallback(iFontDeleteNotify func)
iFont
addDeleteCallback
in interface iFont
func
- iFont.addDeleteCallback(crystalspace.jbind.interfaces.ivideo.fontserv.iFontDeleteNotify)
public int getAscent()
iFont
getAscent
in interface iFont
iFont.getAscent()
public int getDescent()
iFont
getDescent
in interface iFont
iFont.getDescent()
public int[] getDimensions(java.lang.String text)
iFont
getDimensions
in interface iFont
text
-
iFont.getDimensions(java.lang.String)
public iDataBuffer getGlyphAlphaBitmap(int c, csBitmapMetrics metrics)
iFont
getGlyphAlphaBitmap
in interface iFont
c
- metrics
-
iFont.getGlyphAlphaBitmap(int, crystalspace.jbind.impl.video.fontserv.csBitmapMetrics)
public iDataBuffer getGlyphBitmap(int c, csBitmapMetrics metrics)
iFont
getGlyphBitmap
in interface iFont
c
- metrics
-
iFont.getGlyphBitmap(int, crystalspace.jbind.impl.video.fontserv.csBitmapMetrics)
public boolean getGlyphMetrics(int c, csGlyphMetrics metrics)
iFont
getGlyphMetrics
in interface iFont
c
- metrics
-
iFont.getGlyphMetrics(int, crystalspace.jbind.impl.video.fontserv.csGlyphMetrics)
public int getLength(java.lang.String text, int maxwidth)
iFont
getLength
in interface iFont
text
- maxwidth
-
iFont.getLength(java.lang.String, int)
public int[] getMaxSize()
iFont
getMaxSize
in interface iFont
iFont.getMaxSize()
public int getSize()
iFont
getSize
in interface iFont
iFont.getSize()
public boolean hasGlyph(int c)
iFont
hasGlyph
in interface iFont
c
-
iFont.hasGlyph(int)
public boolean removeDeleteCallback(iFontDeleteNotify func)
iFont
removeDeleteCallback
in interface iFont
func
-
iFont.removeDeleteCallback(crystalspace.jbind.interfaces.ivideo.fontserv.iFontDeleteNotify)
public void setSize(int iSize)
iFont
setSize
in interface iFont
iSize
- iFont.setSize(int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |