default
tkfreetype2
tkfreetype2
tkfreetype2.NativeFT2Face
getAscender() : float
- Return the "minimal descender".
getDescender() : float
- Return the "maximal ascender".
getHeight() : float
- Return the actually selected font height.
getStyleFlags() : int
- Return the font style flags
getUnderlinePosition() : float
- Return the y position of the underline line
getUnderlineThickness() : float
- Return the thickness of the underline line
loadChar(Class ft2face, char c)
- Load a char glyph and return its extends in "ft2face"
openFileFace(String fileName, float w, h) : boolean
- Open a font face from the given local file
openMemoryFace(Buffer b, float w, h) : boolean
- Open a font face from the given memory buffer.
renderGlyph(Object texture)
- Render last loaded char glyph.
storeFamilyName(String s)
- Write the font family name to the given string.
storeGlyphsAdvanceX(FloatArray fa)
- Write the advancex for glyphs 0..255 to the given FloatArray
storeStyleName(String s)
- Write the font style name to the given string.
For an example on how to use this class, take a look at the "testgl.tks" example script in the tkfreetype2 plugin directory.
The tkfreetype2 plugin is accompanied by a "freetype2.tks" support script which simplifies font handling/rendering.
Method getAscender | |||||
Return the "minimal descender". | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getDescender | |||||
Return the "maximal ascender". | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getHeight | |||||
Return the actually selected font height. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getStyleFlags | |||||
Return the font style flags | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getUnderlinePosition | |||||
Return the y position of the underline line | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getUnderlineThickness | |||||
Return the thickness of the underline line | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method loadChar | |||||||||||||||
Load a char glyph and return its extends in "ft2face" | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method openFileFace | |||||||||||||||||||||||||
Open a font face from the given local file | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
|
Method openMemoryFace | |||||||||||||||||||||||||
Open a font face from the given memory buffer. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
|
Method renderGlyph | |||||
Render last loaded char glyph. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
The texture object must support the yacArrayGetStridE(), yacArrayGetPointer(), yacArrayGetWidth(), yacArrayGetHeight() calls. The bitmap data is written in 8bits per pixel format. If unsure, pass an instance of the Texture class. |
Method storeFamilyName | |||||
Write the font family name to the given string. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method storeGlyphsAdvanceX | |||||
Write the advancex for glyphs 0..255 to the given FloatArray | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method storeStyleName | |||||
Write the font style name to the given string. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Project Modules: | tkfreetype2 |
Project Classes: | NativeFT2Face |
Project Functions: | |
All Namespaces: | default , ui |
All Projects: | core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit |
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54