bobbylight / RSyntaxTextArea

A syntax highlighting, code folding text editor for Java Swing applications.
BSD 3-Clause "New" or "Revised" License
1.12k stars 259 forks source link

Issue457: Fractional Scaling on Windows #524

Open ptorngren opened 1 year ago

ptorngren commented 1 year ago

Add support for FPAPI: Add new class SwingUtils with methods for leveraging the FPAPI

Modify concerned classes and methods to call SwingUtils and use Rectangle2D and float/double variables instead of Rectangle and integers:

Layout/painter changes:

Adapt to Java 11: Replace calls to deprecated elements with corresponding elements for Java 9 or later Rectangles and bounds:

Events:

Also modified the Demo Root Pane:

bobbylight commented 2 weeks ago

@ptorngren - I'm finally looking at this, thank you! I started down this path myself but it's a very large task and I'm duplicating effort here.

Can you rebase this PR against the java-11 branch? All it does so far is update the build to use Java 11. After that, if things look good, can we squash and merge?

My plan is then to release a 4.0.0-SNAPSHOT release to Sonatype while I do a bit more code modernization for Java 11, bump checkstyle, etc.

ptorngren commented 1 week ago

Hi,

Will do asap, but not immediately since we’re shipping a major release “as we speak”. Hope to get around to this in a matter of weeks.

Hälsningar/Regards

Peer Törngren p2r software AB (p2r.se)

------ Original Message ------ From "bobbylight" @.> To "bobbylight/RSyntaxTextArea" @.> Cc "Peer Törngren" @.>; "Mention" @.> Date 2024-11-19 13:57:17 Subject Re: [bobbylight/RSyntaxTextArea] Issue457: Fractional Scaling on Windows (PR #524)

@ptorngren https://github.com/ptorngren - I'm finally looking at this, thank you! I started down this path myself but it's a very large task and I'm duplicating effort here.

Can you rebase this PR against the java-11 branch? All it does so far is update the build to use Java 11. After that, if things look good, can we squash and merge?

My plan is then to release a 4.0.0-SNAPSHOT release to Sonatype while I do a bit more code modernization for Java 11, bump checkstyle, etc.

— Reply to this email directly, view it on GitHub https://github.com/bobbylight/RSyntaxTextArea/pull/524#issuecomment-2485645804, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDCYSZPHGUGM4RWMOLAHO32BMYS3AVCNFSM6AAAAABSCBSNKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBVGY2DKOBQGQ. You are receiving this because you were mentioned.Message ID: @.***>