⇤ ← Revision 1 as of 2008-07-17 01:08:00
Size: 317
Comment:
|
Size: 376
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
Line 4: | Line 3: |
self.render_mode = EMImageMXCore.FTGL | |
Line 8: | Line 6: |
self.font_renderer.set_font_mode(FTGLFontMode.TEXTURE) self.font_renderer.set_font_file_name("/usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf") |
self.font_renderer.set_depth(32) # only applicable if font mode is EXTRUDE self.font_renderer.set_font_mode(FTGLFontMode.TEXTURE) # or EXTRUDE, or PIMAP #self.font_renderer.set_font_file_name("/usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf") |
self.font_renderer = EMFTGL() self.font_renderer.set_face_size(16) self.font_renderer.set_using_display_lists(True) self.font_renderer.set_depth(32) # only applicable if font mode is EXTRUDE self.font_renderer.set_font_mode(FTGLFontMode.TEXTURE) # or EXTRUDE, or PIMAP #self.font_renderer.set_font_file_name("/usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf")