Unit mseftgl

Description

 

Overview

Classes, Interfaces, Objects and Records

Name Description
Record FT_GlyphSlotRec  
Record FTGLfont  
Record FTGLglyph  
Packed Record boundsty  

Functions and Procedures

procedure initializeftgl(const sonames: array of filenamety);
procedure releaseftgl;

Types

size_t = ptruint;
FT_Error = cint;
FT_GlyphSlot = ˆFT_GlyphSlotRec;
pFTGLfont = ˆFTGLfont;
pFTGLglyph = ˆFTGLglyph;
makeglyphcallbackty = function(par1: FT_GlyphSlot; par2: pointer): pFTGLglyph; cdecl;

Constants

ftgllib: array[0..1] of filenamety = ('libftgl.so.2','libftgl.so');
FT_ENCODING_NONE = 0;
FT_ENCODING_MS_SYMBOL = (ord('s') shl 24) or (ord('y') shl 16) or (ord('m') shl 8) or ord('b');
FT_ENCODING_UNICODE = (ord('u') shl 24) or (ord('n') shl 16) or (ord('i') shl 8) or ord('c');
FT_ENCODING_SJIS = (ord('s') shl 24) or (ord('j') shl 16) or (ord('i') shl 8) or ord('s');
FT_ENCODING_GB2312 = (ord('g') shl 24) or (ord('b') shl 16) or (ord(' ') shl 8) or ord(' ');
FT_ENCODING_BIG5 = (ord('b') shl 24) or (ord('i') shl 16) or (ord('g') shl 8) or ord('5');
FT_ENCODING_WANSUNG = (ord('w') shl 24) or (ord('a') shl 16) or (ord('n') shl 8) or ord('s');
FT_ENCODING_JOHAB = (ord('j') shl 24) or (ord('o') shl 16) or (ord('h') shl 8) or ord('a');
FT_ENCODING_MS_SJIS = FT_ENCODING_SJIS;
FT_ENCODING_MS_GB2312 = FT_ENCODING_GB2312;
FT_ENCODING_MS_BIG5 = FT_ENCODING_BIG5;
FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG;
FT_ENCODING_MS_JOHAB = FT_ENCODING_JOHAB;
FT_ENCODING_ADOBE_STANDARD = (ord('A') shl 24) or (ord('D') shl 16) or (ord('O') shl 8) or ord('B');
FT_ENCODING_ADOBE_EXPERT = (ord('A') shl 24) or (ord('D') shl 16) or (ord('B') shl 8) or ord('E');
FT_ENCODING_ADOBE_CUSTOM = (ord('A') shl 24) or (ord('D') shl 16) or (ord('B') shl 8) or ord('C');
FT_ENCODING_ADOBE_LATIN_1 = (ord('l') shl 24) or (ord('a') shl 16) or (ord('t') shl 8) or ord('1');
FT_ENCODING_OLD_LATIN_2 = (ord('l') shl 24) or (ord('a') shl 16) or (ord('t') shl 8) or ord('2');
FT_ENCODING_APPLE_ROMAN = (ord('a') shl 24) or (ord('r') shl 16) or (ord('m') shl 8) or ord('n');
FTGL_RENDER_FRONT = $0001;
FTGL_RENDER_BACK = $0002;
FTGL_RENDER_SIDE = $0004;
FTGL_RENDER_ALL = $ffff;
FTGL_ALIGN_LEFT = 0;
FTGL_ALIGN_CENTER = 1;
FTGL_ALIGN_RIGHT = 2;
FTGL_ALIGN_JUSTIFY = 3;

Variables

ftglCreateCustomFont: function(fontFilePath: pchar; data: pointer; makeglyphCallback: makeglyphcallbackty): pFTGLfont; cdecl;
ftglCreateBitmapFont: function(_file: pchar): pFTGLfont; cdecl;
ftglCreatePixmapFont: function(_file: pchar): pFTGLfont; cdecl;
ftglCreateOutlineFont: function(_file: pchar): pFTGLfont; cdecl;
ftglCreatePolygonFont: function(_file: pchar): pFTGLfont; cdecl;
ftglCreateTextureFont: function(_file: pchar): pFTGLfont; cdecl;
ftglCreateBufferFont: function(_file: pchar): pFTGLfont; cdecl;
ftglDestroyFont: procedure(font: pFTGLfont); cdecl;
ftglAttachFile: function(font: pFTGLfont; path: pchar): cint; cdecl;
ftglAttachData: function(font: pFTGLfont; data: pbyte; size: size_t): cint; cdecl;
ftglSetFontCharMap: function(font: pFTGLfont; encoding: cint): cint; cdecl;
ftglGetFontCharMapCount: function(font: pFTGLfont): cuint; cdecl;
ftglGetFontCharMapList: function(font: pFTGLfont): pcint; cdecl;
ftglSetFontFaceSize: function(font: pFTGLfont; size: cuint; res: cuint): cint; cdecl;
ftglGetFontFaceSize: function(font: pFTGLfont): cuint; cdecl;
ftglSetFontDepth: procedure(font: pFTGLfont; depth: cfloat); cdecl;
ftglSetFontOutset: procedure(font: pFTGLfont; front: cfloat; back: cfloat); cdecl;
ftglSetFontDisplayList: procedure(font: pFTGLfont; useList: cint); cdecl;
ftglGetFontAscender: function(font: pFTGLfont): cfloat; cdecl;
ftglGetFontDescender: function(font: pFTGLfont): cfloat; cdecl;
ftglGetFontLineHeight: function(font: pFTGLfont): cfloat; cdecl;
ftglGetFontBBox: procedure(font: pFTGLfont; _string: pchar; len: cint; out bounds: boundsty); cdecl;
ftglGetFontAdvance: function(font: pFTGLfont; _string: pchar): cfloat; cdecl;
ftglRenderFont: procedure(font: pFTGLfont; _string: pchar; mode: cint); cdecl;
ftglGetFontError: function(font: pFTGLfont): FT_Error; cdecl;

Description

Functions and Procedures

procedure initializeftgl(const sonames: array of filenamety);
 
procedure releaseftgl;
 

Types

size_t = ptruint;
 
FT_Error = cint;
 
FT_GlyphSlot = ˆFT_GlyphSlotRec;
 
pFTGLfont = ˆFTGLfont;
 
pFTGLglyph = ˆFTGLglyph;
 
makeglyphcallbackty = function(par1: FT_GlyphSlot; par2: pointer): pFTGLglyph; cdecl;
 

Constants

ftgllib: array[0..1] of filenamety = ('libftgl.so.2','libftgl.so');
 
FT_ENCODING_NONE = 0;
 
FT_ENCODING_MS_SYMBOL = (ord('s') shl 24) or (ord('y') shl 16) or (ord('m') shl 8) or ord('b');
 
FT_ENCODING_UNICODE = (ord('u') shl 24) or (ord('n') shl 16) or (ord('i') shl 8) or ord('c');
 
FT_ENCODING_SJIS = (ord('s') shl 24) or (ord('j') shl 16) or (ord('i') shl 8) or ord('s');
 
FT_ENCODING_GB2312 = (ord('g') shl 24) or (ord('b') shl 16) or (ord(' ') shl 8) or ord(' ');
 
FT_ENCODING_BIG5 = (ord('b') shl 24) or (ord('i') shl 16) or (ord('g') shl 8) or ord('5');
 
FT_ENCODING_WANSUNG = (ord('w') shl 24) or (ord('a') shl 16) or (ord('n') shl 8) or ord('s');
 
FT_ENCODING_JOHAB = (ord('j') shl 24) or (ord('o') shl 16) or (ord('h') shl 8) or ord('a');
 
FT_ENCODING_MS_SJIS = FT_ENCODING_SJIS;
 
FT_ENCODING_MS_GB2312 = FT_ENCODING_GB2312;
 
FT_ENCODING_MS_BIG5 = FT_ENCODING_BIG5;
 
FT_ENCODING_MS_WANSUNG = FT_ENCODING_WANSUNG;
 
FT_ENCODING_MS_JOHAB = FT_ENCODING_JOHAB;
 
FT_ENCODING_ADOBE_STANDARD = (ord('A') shl 24) or (ord('D') shl 16) or (ord('O') shl 8) or ord('B');
 
FT_ENCODING_ADOBE_EXPERT = (ord('A') shl 24) or (ord('D') shl 16) or (ord('B') shl 8) or ord('E');
 
FT_ENCODING_ADOBE_CUSTOM = (ord('A') shl 24) or (ord('D') shl 16) or (ord('B') shl 8) or ord('C');
 
FT_ENCODING_ADOBE_LATIN_1 = (ord('l') shl 24) or (ord('a') shl 16) or (ord('t') shl 8) or ord('1');
 
FT_ENCODING_OLD_LATIN_2 = (ord('l') shl 24) or (ord('a') shl 16) or (ord('t') shl 8) or ord('2');
 
FT_ENCODING_APPLE_ROMAN = (ord('a') shl 24) or (ord('r') shl 16) or (ord('m') shl 8) or ord('n');
 
FTGL_RENDER_FRONT = $0001;
 
FTGL_RENDER_BACK = $0002;
 
FTGL_RENDER_SIDE = $0004;
 
FTGL_RENDER_ALL = $ffff;
 
FTGL_ALIGN_LEFT = 0;
 
FTGL_ALIGN_CENTER = 1;
 
FTGL_ALIGN_RIGHT = 2;
 
FTGL_ALIGN_JUSTIFY = 3;
 

Variables

ftglCreateCustomFont: function(fontFilePath: pchar; data: pointer; makeglyphCallback: makeglyphcallbackty): pFTGLfont; cdecl;
 
ftglCreateBitmapFont: function(_file: pchar): pFTGLfont; cdecl;
 
ftglCreatePixmapFont: function(_file: pchar): pFTGLfont; cdecl;
 
ftglCreateOutlineFont: function(_file: pchar): pFTGLfont; cdecl;
 
ftglCreatePolygonFont: function(_file: pchar): pFTGLfont; cdecl;
 
ftglCreateTextureFont: function(_file: pchar): pFTGLfont; cdecl;
 
ftglCreateBufferFont: function(_file: pchar): pFTGLfont; cdecl;
 
ftglDestroyFont: procedure(font: pFTGLfont); cdecl;
 
ftglAttachFile: function(font: pFTGLfont; path: pchar): cint; cdecl;
 
ftglAttachData: function(font: pFTGLfont; data: pbyte; size: size_t): cint; cdecl;
 
ftglSetFontCharMap: function(font: pFTGLfont; encoding: cint): cint; cdecl;
 
ftglGetFontCharMapCount: function(font: pFTGLfont): cuint; cdecl;
 
ftglGetFontCharMapList: function(font: pFTGLfont): pcint; cdecl;
 
ftglSetFontFaceSize: function(font: pFTGLfont; size: cuint; res: cuint): cint; cdecl;
 
ftglGetFontFaceSize: function(font: pFTGLfont): cuint; cdecl;
 
ftglSetFontDepth: procedure(font: pFTGLfont; depth: cfloat); cdecl;
 
ftglSetFontOutset: procedure(font: pFTGLfont; front: cfloat; back: cfloat); cdecl;
 
ftglSetFontDisplayList: procedure(font: pFTGLfont; useList: cint); cdecl;
 
ftglGetFontAscender: function(font: pFTGLfont): cfloat; cdecl;
 
ftglGetFontDescender: function(font: pFTGLfont): cfloat; cdecl;
 
ftglGetFontLineHeight: function(font: pFTGLfont): cfloat; cdecl;
 
ftglGetFontBBox: procedure(font: pFTGLfont; _string: pchar; len: cint; out bounds: boundsty); cdecl;
 
ftglGetFontAdvance: function(font: pFTGLfont; _string: pchar): cfloat; cdecl;
 
ftglRenderFont: procedure(font: pFTGLfont; _string: pchar; mode: cint); cdecl;
 
ftglGetFontError: function(font: pFTGLfont): FT_Error; cdecl;
 

Generated by PasDoc 0.16.0.