C# 클래스 ISE.FTFont

Font class wraper for displaying FreeType fonts in OpenGL.
파일 보기 프로젝트 열기: colgreen/box2dx 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FT_ALIGN FTFontAlign

공개 메소드들

메소드 설명
Dispose ( ) : void

Dispose of the font

DisposeFreeType ( ) : void

Dispose of the FreeType library

FTFont ( string resourcefilename, int &Success ) : System

Initialise the Font. Will Initialise the freetype library if not already done so

ftBeginFont ( ) : void

Initialise the OpenGL state necessary fo rendering the font properly

ftClearFont ( ) : void

Clear all OpenGL-related structures.

ftEndFont ( ) : void

Restore the OpenGL state to what it was prior to starting to draw the font

ftExtent ( string &text ) : float

Return the horizontal extent (width),in pixels, of a given font string

ftGetGlyphOffset ( Char glyphchar ) : FTGlyphOffset

Return the Glyph offsets for the first character in "text"

ftInit ( ) : int

Initialise the FreeType library

ftRenderToTexture ( int fontsize, uint DPI ) : void

Render the font to a series of OpenGL textures (one per letter)

ftVersion ( int &Major, int &Minor, int &Patch ) : void

Return the version information for FreeType.

ftVersionString ( ) : string

Return the entire version information for FreeType as a String.

ftWrite ( string text ) : void

Custom GL "write" routine.

비공개 메소드들

메소드 설명
CompileCharacterToTexture ( Tao.FreeType.FT_FaceRec face, int c ) : void
next_po2 ( int a ) : int

메소드 상세

Dispose() 공개 메소드

Dispose of the font
public Dispose ( ) : void
리턴 void

DisposeFreeType() 공개 정적인 메소드

Dispose of the FreeType library
public static DisposeFreeType ( ) : void
리턴 void

FTFont() 공개 메소드

Initialise the Font. Will Initialise the freetype library if not already done so
public FTFont ( string resourcefilename, int &Success ) : System
resourcefilename string Path to the external font file
Success int Returns 0 if successful
리턴 System

ftBeginFont() 공개 메소드

Initialise the OpenGL state necessary fo rendering the font properly
public ftBeginFont ( ) : void
리턴 void

ftClearFont() 공개 메소드

Clear all OpenGL-related structures.
public ftClearFont ( ) : void
리턴 void

ftEndFont() 공개 메소드

Restore the OpenGL state to what it was prior to starting to draw the font
public ftEndFont ( ) : void
리턴 void

ftExtent() 공개 메소드

Return the horizontal extent (width),in pixels, of a given font string
public ftExtent ( string &text ) : float
text string
리턴 float

ftGetGlyphOffset() 공개 메소드

Return the Glyph offsets for the first character in "text"
public ftGetGlyphOffset ( Char glyphchar ) : FTGlyphOffset
glyphchar Char
리턴 FTGlyphOffset

ftInit() 공개 정적인 메소드

Initialise the FreeType library
public static ftInit ( ) : int
리턴 int

ftRenderToTexture() 공개 메소드

Render the font to a series of OpenGL textures (one per letter)
public ftRenderToTexture ( int fontsize, uint DPI ) : void
fontsize int size of the font
DPI uint dots-per-inch setting
리턴 void

ftVersion() 공개 정적인 메소드

Return the version information for FreeType.
public static ftVersion ( int &Major, int &Minor, int &Patch ) : void
Major int Major Version
Minor int Minor Version
Patch int Patch Number
리턴 void

ftVersionString() 공개 정적인 메소드

Return the entire version information for FreeType as a String.
public static ftVersionString ( ) : string
리턴 string

ftWrite() 공개 메소드

Custom GL "write" routine.
public ftWrite ( string text ) : void
text string /// The text to print. ///
리턴 void

프로퍼티 상세

FT_ALIGN 공개적으로 프로퍼티

Font alignment public parameter
public FTFontAlign FT_ALIGN
리턴 FTFontAlign