diff --git a/darwin/drawtext.m b/darwin/drawtext.m index e5f0d12e..fd5a5bbb 100644 --- a/darwin/drawtext.m +++ b/darwin/drawtext.m @@ -5,6 +5,7 @@ // TODO on an empty string nLines == 0 // we must prevent this somehow // TODO in general, every function could be more robust, but we cannot have a situation where there are zero lines +// TODO what happens to extents if only whitespace? struct uiDrawTextLayout { CFAttributedStringRef attrstr; diff --git a/unix/drawtext.c b/unix/drawtext.c index 842b70dd..6acb848a 100644 --- a/unix/drawtext.c +++ b/unix/drawtext.c @@ -5,6 +5,7 @@ // TODO // - if the RTL override is at the beginning of a line, the preceding space is included? // - nLines == 0: mostly works, except the width is wrong if the paragraph alignment is center or right... +// - TODO check whitespace and line bounds struct uiDrawTextLayout { PangoLayout *layout;