Macos 10.15.6
When having a large amount of text on Macos, the text has some severe issues. See screenshot: https://imgur.com/a/DeMZSv3
Reproduction:
Download Scintilla 4.4.5 source code
Create new xcode project (I'm using XCode 12), specify App, and Objective-C with Storyboards.
Create new folder without group called "Scintilla"
Set your include directories to
"path/to/scintilla/include"
"path/to/scintilla/lexlib"
"path/to/scintilla/src"
Copy files from those 3 directories and the Lexers directory into the project
Also copy all the source files from the Cocoa directory into there
Make these changes: https://sourceforge.net/p/scintilla/code/ci/2af46887c82cf2109cfc0f34a8e6154e90b46117/
Set your language dialect from GNU-14 to GNU 17
In your ViewController.m file, make these changes and include "ScintillaView.h"
- (void)viewDidAppear {
[super viewDidAppear];
ScintillaView* view = [[ScintillaView alloc] initWithFrame:[self.view frame]];
[view setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[self.view addSubview:view];
}
Then, download the attached zip. Unzip it (45 MB), open it using another editor (like sublime text, or textedit, or Scite), Ctrl A and Copy all of it, run our demo app, paste it into the box.
You will see the line spacing issue.
Appears in SciTE around line 1,118,480 which is (with 13 line height) 14,540,240 pixels which is about right for a single precision issue.
Cocoa differs from other platforms in that the surface coordinates are global view coordinates, not visible area coordinates. You could try to change XYPOSITION to be double precision but that will affect memory use and is a major change.
Aha. Thank you for the reply. I just wanted to make sure it was not on my end.
Fixed with [e27159]
Related
Commit: [e27159]