Kinda sorta fixed the text rendering stuff.

This commit is contained in:
Pietro Gagliardi 2016-01-08 12:49:52 -05:00
parent 4c12934992
commit 94883ed620
1 changed files with 2 additions and 0 deletions

View File

@ -693,6 +693,8 @@ void uiDrawText(uiDrawContext *c, double x, double y, uiDrawTextLayout *layout)
line = CTLineCreateWithAttributedString(layout->mas);
if (line == NULL)
complain("error creating CTLine object in uiDrawText()");
// TODO figure out why this fixes text rendering
CGContextSetTextMatrix(c->c, CGAffineTransformIdentity);
CGContextSetTextPosition(c->c, x, y);
CTLineDraw(line, c->c);
CFRelease(line);