Arc Forumnew | comments | leaders | submitlogin
1 point by tung 6048 days ago | link | parent

It may not be pure OpenGL, but my OpenGL book says that glXUseXFont will load an X font, which builds a bunch of display lists, each one of which containing a character rendered with that font.

I'm curious though. Why OpenGL? SDL plus SDL_ttf could have handled things just as well, plus Y would have pointed down, not up.



2 points by kens 6048 days ago | link

PLT Scheme's OpenGL interface doesn't support glx, so I couldn't use glXUseXFont.

What are SDL and SDL_ttf? Is there any way to use them from Arc?

-----

4 points by tung 6047 days ago | link

http://www.libsdl.org/

Simple DirectMedia Layer. Cross-platform multimedia library that has audio, input and 2D graphics. SDL_ttf is a standard extension to it that provides TrueType font support. If Arc can load C libraries, it can should be able to load SDL.

-----

1 point by stefano 6048 days ago | link

In anarki, you can use ffi.scm to import C functions.

-----