Kinda sorta fixed the text rendering stuff.
This commit is contained in:
parent
4c12934992
commit
94883ed620
|
@ -693,6 +693,8 @@ void uiDrawText(uiDrawContext *c, double x, double y, uiDrawTextLayout *layout)
|
||||||
line = CTLineCreateWithAttributedString(layout->mas);
|
line = CTLineCreateWithAttributedString(layout->mas);
|
||||||
if (line == NULL)
|
if (line == NULL)
|
||||||
complain("error creating CTLine object in uiDrawText()");
|
complain("error creating CTLine object in uiDrawText()");
|
||||||
|
// TODO figure out why this fixes text rendering
|
||||||
|
CGContextSetTextMatrix(c->c, CGAffineTransformIdentity);
|
||||||
CGContextSetTextPosition(c->c, x, y);
|
CGContextSetTextPosition(c->c, x, y);
|
||||||
CTLineDraw(line, c->c);
|
CTLineDraw(line, c->c);
|
||||||
CFRelease(line);
|
CFRelease(line);
|
||||||
|
|
Loading…
Reference in New Issue