"No one can be told what GeeXLab is, you have to see it for yourself!"

"Stop Playing Games and Start Making Them! With GeeXLab, your are on your way!"


Quick Links
What is GeeXLab
Download GeeXLab
GeeXLab Requirements
Online Help
Articles and Tutorials
Samples Screenshots
Videos

GeeXLab Changelog

XML Ref. Guide
Scripting Ref. Guide
Code Samples

Purchase GeeXLab
GeeXLab SDK

Shader Library

Follow GeeXLab's News
GeeXLab news, articles, tutorials and demos @ Geeks3D.com
GeeXLab @ Twitter GeeXLab RSS Feed

Subscribe to GeeXLab news by email

[ Back to Geeks3D.com ]

GeeXLab

GeeXLab

Laboratory for Real Time 3D Programming (prototyping and demos)
OpenGL, Lua, Python, GLSL,
PhysX and more...

Reference Guide
Host-API Lua / Python



Back to Homepage
Back to Developer's Guide Index

HYP_FontOutline Library


Description
Font 3D library

Number of functions: 5

HYP_FontOutline.Create

Description
Creates a new curve object.

Languages: Lua - Python

Parameters
  • ttfName [STRING]: name of the TrueType font: Arial, Verdana, etc.
  • zThickness [REAL]: font object's thickness.

    Return Values
  • fontId [INTEGER]: object identifier

    Code sample :

    fontId = HYP_FontOutline.Create("Arial", 0.4)


    HYP_FontOutline.Destroy

    Description
    Destroys an existing font object.

    Languages: Lua - Python

    Parameters
  • fontId [INTEGER]: object identifier

    Code sample :

    HYP_FontOutline.Destroy(fontId)


    HYP_FontOutline.SetText

    Description
    Sets the text to display.

    Languages: Lua - Python

    Parameters
  • fontId [INTEGER]: object identifier
  • text [STRING]: text to display.

    Code sample :

    HYP_FontOutline.SetText(fontId, "Hello")


    HYP_FontOutline.GetTextWidth

    Description
    Returns the width of the text. This value is useful to position the object.

    Languages: Lua - Python

    Parameters
  • fontId [INTEGER]: object identifier

    Return Values
  • width [REAL]: text's width

    Code sample :

    textWidth = HYP_FontOutline.GetTextWidth(fontId)
    HYP_Object.SetPosition(fontId, -textWidth/2, 0.0, 0.0)


    HYP_FontOutline.SetTextCenteredState

    Description
    Allows to auto-center the text.

    Languages: Lua - Python

    Parameters
  • fontId [INTEGER]: object identifier
  • state [INTEGER]: auto-center state (0 or 1)

    Code sample :

    HYP_FontOutline.GetTextWidth(SetTextCenteredState, 1)




  • Random Projects

    Phong Lighting Multiple Lights
    Phong Lighting Multiple Lights

    Gaussian Blur PostFX
    Gaussian Blur PostFX

    Dream Vision Effect
    Dream Vision Effect


    Random Code Samples

    Shadow Mapping
    Shadow Mapping

    Mesh Instancing - Spirale
    Mesh Instancing - Spirale

    HUD (Head Up Display)
    HUD (Head Up Display)



    (C)2009-2010 Geeks3D.com