- if (get_boolean_resource ("fpsTop", "FPSTop"))
- fps_text_y = - (f->ascent + 10);
+ glXUseXFont (id, first, last-first+1, st->font_dlist + first);
+ check_gl_error ("glXUseXFont");
+ }
+
+# else /* HAVE_COCOA */
+
+ {
+ AGLContext ctx = aglGetCurrentContext();
+ GLint id = 0; /* 0 = system font; 1 = application font */
+ Style face = 1; /* 0 = plain; 1=B; 2=I; 3=BI; 4=U; 5=UB; etc. */
+ GLint size = 24;
+ GLint first = 32;
+ GLint last = 255;
+
+ st->ascent = size * 0.9;
+ st->descent = size - st->ascent;
+
+ clear_gl_error ();
+ st->font_dlist = glGenLists ((GLuint) last+1);
+ check_gl_error ("glGenLists");
+
+ if (! aglUseFont (ctx, id, face, size,
+ first, last-first+1, st->font_dlist + first)) {
+ check_gl_error ("aglUseFont");
+ abort();
+ }
+ }