public ScrollText(string text) { _font = new FtGl.FTGLExtrudeFont("/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf"); _font.Depth(0.01f); _font.FaceSize(1); _font.Outset(0.0f, 0.02f); _font.CharMap(FT_Encoding.FT_ENCODING_UNICODE); _layout = new FtGl.FTSimpleLayout(); _layout.SetLineLength(_width); _layout.SetFont(_font); _layout.SetAlignment(FtGl.TextAlignment.ALIGN_CENTER); _text = text; _starttime = DateTime.Now; }
public GLFTFont(string font, int size) { this.font = new FtGl.FTGLTextureFont(font); this.font.FaceSize(size); fontSize = size; }