Last week I pushed out a major rewrite of FontLabel. This new version includes a category modeled after UIStringDrawing that enables you to draw text in custom fonts in your own drawRect: methods. It also includes accurate font metrics and uses more of the built-in UILabel properties. Contributions are welcome!

2 Responses to “Major FontLabel update”
  1. I had to add this line ( if (table == NULL) return; ) when using fonts that use the magic number 29 otherwise I had a crash.

    static void freeFontTable(fontTable *table) {
    if (table == NULL) return;

  2. Ah hah, good catch. I don’t have any fonts that use the magic number 29 any more. I’ll see if I can’t get that put into the official repo today.