From 94883ed620165c8b40371a4a6c9a818eedb9f052 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 8 Jan 2016 12:49:52 -0500 Subject: [PATCH] Kinda sorta fixed the text rendering stuff. --- darwin/draw.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/darwin/draw.m b/darwin/draw.m index 1052bb28..abab7b38 100644 --- a/darwin/draw.m +++ b/darwin/draw.m @@ -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);