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

Align text style rasterisation settings to the IDE in the bridge #415

Open
rock3r opened this issue Jun 27, 2024 · 2 comments
Open

Align text style rasterisation settings to the IDE in the bridge #415

rock3r opened this issue Jun 27, 2024 · 2 comments
Assignees
Labels
blocked-externally This issue or feature is blocked by external dependencies (e.g., bugs in Compose) bridge Something that impacts the Swing LaF bridge consistency Our UI presentation is not consistent with IJ

Comments

@rock3r
Copy link
Collaborator

rock3r commented Jun 27, 2024

In the IJP, users can select the text antialiasing they want to use:

image

The available options are:

  • No antialias
  • Grayscale (default on macOS)
  • Subpixel (not available on macOS)

Compose/Skia, on the other hand, defaults to greyscale antialiasing. This results in slightly (more) different text rendering from Swing on Windows (where ClearType, their proprietary subpixel rendering algorithm, is on by default) and Linux when the subpixel antialiasing is enabled on Swing.

This issue is to add facilities to the bridge to ensure the default and editor/console default TextStyles we use in Jewel match the setting in use the IDE (and update accordingly when these change!). We probably also want a new API to create TextStyles with the correct antialiasing settings in the bridge — something like TextStyle.Default(... [all params with defaults]).

@rock3r rock3r added consistency Our UI presentation is not consistent with IJ bridge Something that impacts the Swing LaF bridge labels Jun 27, 2024
@rock3r
Copy link
Collaborator Author

rock3r commented Jun 27, 2024

More information on how to implement the different setting in Compose can be found on this PR: JetBrains/compose-multiplatform-core#1102

@rock3r
Copy link
Collaborator Author

rock3r commented Jul 11, 2024

@rock3r rock3r added the blocked-externally This issue or feature is blocked by external dependencies (e.g., bugs in Compose) label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked-externally This issue or feature is blocked by external dependencies (e.g., bugs in Compose) bridge Something that impacts the Swing LaF bridge consistency Our UI presentation is not consistent with IJ
Projects
None yet
Development

No branches or pull requests

2 participants