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:
parent
877ffa5f89
commit
8d3c68d7f0
|
@ -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];
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue