-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Render fonts slightly nicer #2677
Conversation
You need to actually provide the hints, too. Check the wlr_output's subpixel geometry. |
Ah, yeah. The actual patch I was using had an extra line setting subpixel order to |
Please extract this piece of information from |
Ref #1685? |
88b665c
to
ee77c00
Compare
Nice. |
common/cairo.c
Outdated
case WL_OUTPUT_SUBPIXEL_VERTICAL_BGR: | ||
return CAIRO_SUBPIXEL_ORDER_VBGR; | ||
default: | ||
return CAIRO_SUBPIXEL_ORDER_DEFAULT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style nit: align case with switch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. I wonder if there's a clang-format rule for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've looked into clang-format before, unfortunately there are a few issues with our style that it doesn't support.
LGTM aside from one minor style issue |
… text and lines with subpixel hinting (if available).
ee77c00
to
c495164
Compare
Thanks! |
Set cairo font options to render text and lines with subpixel hinting (if available).
I've been running sway with this patch for several months and I prefer it.