Module Ttffont


module Ttffont: sig .. end
Truetype font support. This module is still pretty rough but it gets the basic job done.

You would normally render fonts under an Application.ortho_pixel_renderer.

Example:


	let font = make_font "FreeSans.ttf" 14 in
	let screen_height = 480 in

	let my_node = object
		method draw_scene =
			font#render ~x:0 ~y:screen_height "Hello World!"
	end 
	in ...


val ascii_first_printable : int
val ascii_last_printable : int
val tex_index_count : int Pervasives.ref
val tex_index_map : (GlTex.texture_id * int) list Pervasives.ref
val add_tex : GlTex.texture_id -> unit
val get_tex : GlTex.texture_id -> int
val get_tex_byindex : int -> GlTex.texture_id
val generate_texture : Sdlttf.font ->
GlTex.texture_id list * (GlTex.texture_id * float * float * float) array
val make_font : string ->
int ->
< get_texture : char -> GlTex.texture_id;
render : x:int -> y:int -> string -> unit >
Returns a font rendering object object.