Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The editing view is inconsistent with the preview and export views #582

Open
Ghost-Girls opened this issue Jan 6, 2024 · 4 comments
Open

Comments

@Ghost-Girls
Copy link

I found a problem. When I use the new version of Treesheet to export pictures, the text is offset, but there is no issue with the old version V2020.05.09(Uses wxWidgets 3.1.4) that I use.
I have tried 3024826938 to 7433326455 in the Release page and all have this issue, is this a known issue, or has no feedback been reported?

The same font, the same size, but the exported image effect is not the same.

1
3
new
old

@aardappel
Copy link
Owner

Already in the older versions, the way "printing" works in wxWidgets is some weird system that does not seem to work the same way as screen rendering. My guess is that they made changes to this system in recent versions. I already didn't understand how the old versions work, so I don't think I know why the new ones are different.

Rather than using printing functionality, I'd use the export image (or screenshot) functionality, as at least it will look like on screen.

@Ghost-Girls
Copy link
Author

Already in the older versions, the way "printing" works in wxWidgets is some weird system that does not seem to work the same way as screen rendering. My guess is that they made changes to this system in recent versions. I already didn't understand how the old versions work, so I don't think I know why the new ones are different.

Rather than using printing functionality, I'd use the export image (or screenshot) functionality, as at least it will look like on screen.

In my opinion, editing and exporting are two systems, but they should have a place to configure.
So when the export is turned on the left side and the top alignment, and the export must have a preview, so the two things should use the same parameters used in the export.

In theory, it should be possible to modify the parameters, but I don't know where the code is for this part, and I'm willing to take the time to try.

@Ghost-Girls
Copy link
Author

    if (k == A_EXPIMAGE) 
    {
        wxBitmap bm = GetBitmap();
        Refresh();
        if (!bm.SaveFile(fn, wxBITMAP_TYPE_PNG)) return _(L"Error writing PNG file!");
    }

seems like it just get bitmap from wxWidgets, I need to build it in the VS2022 to modify.

@aardappel
Copy link
Owner

The print code we have no control over, that is all done automatically by wxWidgets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants