メインページ | ネームスペース一覧 | クラス階層 | データ構造 | Directories | ファイル一覧 | データフィールド

クラス sdl4gcj::ttf::Font

sdl4gcj::ttf::Fontに対する継承グラフ

Inheritance graph
[凡例]
sdl4gcj::ttf::Fontのコラボレーション図

Collaboration graph
[凡例]

Public メソッド

native int getFontStyle ()
 Get font render style.
native void setFontStyle (int fontStyle)
 Set font render style.
native int fontHeight ()
 Get font maximum total height.
native int fontAscent ()
 Get font highest ascent (height above base).
native int fontDescent ()
 Get font lowest descent (height below base).
native int fontLineSkip ()
 Get font recommended line spacing.
native int fontFaces ()
 Get the number of faces in a font.
native boolean fontFaceIsFixedWidth ()
 Check font has fixed width.
native String fontFaceFamilyName ()
 Get font face family name.
native String fontFaceStyleName ()
 Get font face style name.
native int widthText (CharSequence text)
 Get width of rendered string.
native int heightText (CharSequence text)
 Get height of rendered string.
native Surface renderTextSolid (CharSequence text, Color foregroundColor)
 renderTextSolid
native Surface renderTextShaded (CharSequence text, Color foregroundColor, Color backgroundColor)
 renderTextShaded
native Surface renderTextBlended (CharSequence text, Color foregroundColor)
 renderTextBlended
native void closeFont ()
 Close font.
void finalize ()

Static Public メソッド

static native Font openFont (String fontFilePath, int ptSize)
 Open font.
static native Font openFontIndex (String fontFilePath, int ptSize, long index)
 Open font with face index.

Protected 変数

gnu.gcj.RawData implementation = null

Private メソッド

 Font ()

コンストラクタとデストラクタ

sdl4gcj::ttf::Font::Font  )  [inline, private]
 


関数

native void sdl4gcj::ttf::Font::closeFont  ) 
 

Close font.

void sdl4gcj::ttf::Font::finalize  )  [inline]
 

native int sdl4gcj::ttf::Font::fontAscent  ) 
 

Get font highest ascent (height above base).

戻り値:
The maximum pixel ascent of all glyphs in the font.

native int sdl4gcj::ttf::Font::fontDescent  ) 
 

Get font lowest descent (height below base).

戻り値:
The maximum pixel height of all glyphs in the font.

native String sdl4gcj::ttf::Font::fontFaceFamilyName  ) 
 

Get font face family name.

戻り値:
font face family name.

native boolean sdl4gcj::ttf::Font::fontFaceIsFixedWidth  ) 
 

Check font has fixed width.

戻り値:
true if receiver is a fixed width font. false otherwise.

native int sdl4gcj::ttf::Font::fontFaces  ) 
 

Get the number of faces in a font.

戻り値:
The number of font faces in this font.

native String sdl4gcj::ttf::Font::fontFaceStyleName  ) 
 

Get font face style name.

戻り値:
font face style name.

native int sdl4gcj::ttf::Font::fontHeight  ) 
 

Get font maximum total height.

戻り値:
The maximum pixel height of all glyphs in the font.

native int sdl4gcj::ttf::Font::fontLineSkip  ) 
 

Get font recommended line spacing.

戻り値:
The reccomended pixel height of a rendered line of text.

native int sdl4gcj::ttf::Font::getFontStyle  ) 
 

Get font render style.

The style as a bitmask composed of the following masks:

  • TTF_STYLE_BOLD
  • TTF_STYLE_ITALIC
  • TTF_STYLE_UNDERLINE
If no style is set then TTF_STYLE_NORMAL is returned.
戻り値:
Font Style
参照:
TTF_STYLE_BOLD

TTF_STYLE_ITALIC

TTF_STYLE_UNDERLINE

TTF_STYLE_NORMAL

native int sdl4gcj::ttf::Font::heightText CharSequence  text  ) 
 

Get height of rendered string.

引数:
text The char sequence to calculate height
戻り値:
height of rendered string

static native Font sdl4gcj::ttf::Font::openFont String  fontFilePath,
int  ptSize
[static]
 

Open font.

引数:
fontFilePath A path to TTF font file
ptSize Point size.
戻り値:
The loaded font object.

static native Font sdl4gcj::ttf::Font::openFontIndex String  fontFilePath,
int  ptSize,
long  index
[static]
 

Open font with face index.

引数:
fontFilePath A path to TTF font file
ptSize Point size.
index choose a font face from a multiple font face containing file. The first face is always index 0.
戻り値:
The loaded font object.

native Surface sdl4gcj::ttf::Font::renderTextBlended CharSequence  text,
Color  foregroundColor
 

renderTextBlended

引数:
text Char sequence to render
foregroundColor The color to redner the text
戻り値:
Rendered Surface

native Surface sdl4gcj::ttf::Font::renderTextShaded CharSequence  text,
Color  foregroundColor,
Color  backgroundColor
 

renderTextShaded

引数:
text Char sequence to render
foregroundColor The color to redner the text
backgroundColor The color to redner the background box
戻り値:
Rendered Surface

native Surface sdl4gcj::ttf::Font::renderTextSolid CharSequence  text,
Color  foregroundColor
 

renderTextSolid

引数:
text Char sequence to render
foregroundColor The color to redner the text
戻り値:
Rendered Surface

native void sdl4gcj::ttf::Font::setFontStyle int  fontStyle  ) 
 

Set font render style.

The style as a bitmask composed of the following masks:

  • TTF_STYLE_BOLD
  • TTF_STYLE_ITALIC
  • TTF_STYLE_UNDERLINE
If you want no style, set TTF_STYLE_NORMAL.
引数:
fontStyle The font render style
参照:
TTF_STYLE_BOLD

TTF_STYLE_ITALIC

TTF_STYLE_UNDERLINE

TTF_STYLE_NORMAL

native int sdl4gcj::ttf::Font::widthText CharSequence  text  ) 
 

Get width of rendered string.

引数:
text The char sequence to calculate width
戻り値:
width of rendered string


構造体

gnu.gcj.RawData sdl4gcj::ttf::Font::implementation = null [protected]
 


このクラスの説明は次のファイルから生成されました:
sdl4gcjに対してSat Oct 1 23:29:23 2005に生成されました。  doxygen 1.4.3