More notes.

This commit is contained in:
Pietro Gagliardi 2017-01-21 10:21:39 -05:00
parent f0b9ff9aba
commit d8316790a0
3 changed files with 8 additions and 1 deletions

View File

@ -82,7 +82,7 @@ static CFAttributedStringRef attrstrToCoreFoundation(uiAttributedString *s, uiDr
return mas;
}
// TODO this is wrong for our grapheme test; figure out what it should be...
// TODO this is wrong for our hit-test example's multiple combining character example
static uiDrawTextLayoutLineMetrics *computeLineMetrics(CTFrameRef frame, CGSize size)
{
uiDrawTextLayoutLineMetrics *metrics;

View File

@ -2,6 +2,9 @@
#include "uipriv_unix.h"
#include "draw.h"
// TODO
// - if the RTL override is at the beginning of a line, the preceding space is included?
struct uiDrawTextLayout {
PangoLayout *layout;
uiDrawTextLayoutLineMetrics *lineMetrics;

View File

@ -2,6 +2,10 @@
#include "uipriv_windows.hpp"
#include "draw.hpp"
// TODO
// - consider the warnings about antialiasing in the PadWrite sample
// - if that's not a problem, do we have overlapping rects in the hittest sample? I can't tell...
struct uiDrawTextLayout {
IDWriteTextFormat *format;
IDWriteTextLayout *layout;