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

font size setting of Labels on image does not affect actually. #498

Closed
a347807131 opened this issue Dec 8, 2023 · 3 comments
Closed

font size setting of Labels on image does not affect actually. #498

a347807131 opened this issue Dec 8, 2023 · 3 comments
Milestone

Comments

@a347807131
Copy link
Contributor

Describe the bug. What happened?

1, change the specified setting
2, draw an whatever shap
3, then its measure text size does not change.


debug report.

i found its size come from view2d component throght method public Font getFont(),but the component owns two ways to get the font size. the first that is correct is to get the font size from ViewCanvas interface, howerver its overrode but by its super class JComponent.

What version of Weasis are you running?

4.1.2

On which system the problem occurs?

Windows

Relevant log output

No response

Additional contextual elements

No response

@nroduit
Copy link
Owner

nroduit commented Dec 13, 2023

Yes, this is an old feature that is no longer active. I don't think it's a good idea to set an absolute value, as the entire graphical interface can change depending on the scaling factor.

This feature should be removed or converted to relative values.

@nroduit nroduit removed the triage label Jan 4, 2024
@nroduit
Copy link
Owner

nroduit commented Jan 4, 2024

Fixed in next release, It will use the flatlaf scale fonts

@nroduit nroduit closed this as completed Jan 4, 2024
@nroduit nroduit added this to the 4.2.2 milestone Jan 5, 2024
@a347807131
Copy link
Contributor Author

a347807131 commented Jan 20, 2024

nice done, buddy.

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

No branches or pull requests

2 participants