From 287d59b5c5f439e6e5387a85ed72dc8ddd2cc64c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 11 Nov 2016 01:21:28 -0500 Subject: [PATCH] More TODOs. --- TODO.md | 2 ++ darwin/drawtext.m | 2 ++ 2 files changed, 4 insertions(+) diff --git a/TODO.md b/TODO.md index b0a8a664..33ac95af 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,5 @@ +- make sure the last line of text layouts include leading + - documentation notes: - static binaries do not link system libraries, meaning apps still depend on shared GTK+, etc. - ui*Buttons are NOT compatible with uiButton functions diff --git a/darwin/drawtext.m b/darwin/drawtext.m index 07038616..c376536a 100644 --- a/darwin/drawtext.m +++ b/darwin/drawtext.m @@ -445,6 +445,8 @@ uiDrawTextLayout *uiDrawNewTextLayout(const char *str, uiDrawTextFont *defaultFo layout = uiNew(uiDrawTextLayout); + // TODO docs say we need to use a different set of key callbacks + // TODO see if the font attribute key callbacks need to be the same attr = newAttrList(); // this will retain defaultFont->f; no need to worry CFDictionaryAddValue(attr, kCTFontAttributeName, defaultFont->f);