dnkl/foot
41
2.0k
Fork
You've already forked foot
243

Use logical DPI+scale factor when scaling fonts #6

Manually merged
dnkl merged 2 commits from scale-fonts-using-logical-dpi-plus-scale-factor into master 2020年03月13日 18:48:33 +01:00
Owner
Copy link

This fixes an issue where the fonts were rendered too small when the
output had fractional scaling.

For integral scaling, using the logical (scaled) DPI multiplied with
the scaling factor results in the same final DPI value as if we had
used the physical DPI.

But for fractional scaling, this works around the fact that the
compositor downscales the surface after we've rendered it.

Closes #5

@nikp123 would you like to take this for a spin before I merge it?

This fixes an issue where the fonts were rendered too small when the output had fractional scaling. For integral scaling, using the logical (scaled) DPI multiplied with the scaling factor results in the same final DPI value as if we had used the physical DPI. But for fractional scaling, this works around the fact that the compositor downscales the surface after we've rendered it. Closes #5 @nikp123 would you like to take this for a spin before I merge it?
First-time contributor
Copy link

@dnkl Sorry for the late response, but it doesn't seem to work. It produces the same result.

@dnkl Sorry for the late response, but it doesn't seem to work. It produces the same result.
Author
Owner
Copy link

Is there no difference at all, or is it different, but still not what you expected?

More importantly, can you post the output of, first:

foot --version

and then the full log output from when you start a new foot instance and then move it between the two monitors?

All the above using the build from this PR, of course.

Is there no difference at all, or is it different, but still not what you expected? More importantly, can you post the output of, first: ```sh foot --version ``` and then the **full** log output from when you start a new foot instance and then move it between the two monitors? All the above using the build from this PR, of course.
dnkl closed this pull request 2020年03月13日 18:48:33 +01:00
Author
Owner
Copy link

@nikp123 I went ahead and merged this into master. If you, after updating to latest master, are still having font size issues, please open a new issue with log output as described above

@nikp123 I went ahead and merged this into master. If you, after updating to latest master, are still having font size issues, please open a new issue with log output as described above
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/foot!6
Reference in a new issue
dnkl/foot
No description provided.
Delete branch "scale-fonts-using-logical-dpi-plus-scale-factor"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?