Search code examples
c++macosopenglfontsmacos-carbon

Fonts for Carbon OpenGL app on OS X


I'm trying to add text rendering to a Carbon OpenGL app I'm developing for OS X.

Since the aglUseFont is now deprecated, I'm looking for another way to add text as well as be able to query the glyph properties (i.e. width, height, spacing, etc)

So far I've investigated CoreText and ATSUI but both without much luck.

Please help me!!

Thanks!


Solution

  • In the end I just went with good old glBitmap for my fonts.

    Found an apple dev sample that created rendered each character and got its pertinent info (width, height, offset, etc.)

    However, if I get the time to do some more work on it later, I plan on using the FreeType project as was suggested above.

    Thanks!