Moved the AppKit text drawer out of the way for now. One last experiment first; didn't seem to matter :S

This commit is contained in:
Pietro Gagliardi 2017-01-24 17:12:17 -05:00
parent 877ffa5f89
commit 8d3c68d7f0
3 changed files with 2 additions and 1 deletions

View File

@ -101,6 +101,7 @@ uiDrawTextLayout *uiDrawNewTextLayout(uiAttributedString *s, uiDrawFontDescripto
[tl->container setLineFragmentPadding:0];
tl->layoutManager = [[NSLayoutManager alloc] init];
[tl->layoutManager setTypesetterBehavior:NSTypesetterLatestBehavior];
[tl->layoutManager addTextContainer:tl->container];
[tl->attrstr addLayoutManager:tl->layoutManager];

View File

@ -147,5 +147,5 @@ extern void doManualMove(NSWindow *w, NSEvent *initialEvent);
extern void doManualResize(NSWindow *w, NSEvent *initialEvent, uiWindowResizeEdge edge);
// fontmatch.m
//TODO extern CTFontDescriptorRef fontdescToCTFontDescriptor(uiDrawFontDescriptor *fd);
extern CTFontDescriptorRef fontdescToCTFontDescriptor(uiDrawFontDescriptor *fd);
extern NSFontDescriptor *fontdescToNSFontDescriptor(uiDrawFontDescriptor *fd);