Comments (8)
Can you configure this default actually? Patches are always welcome, especially for macOS, given that it's not what core contributors use.
I'll be the one reviewing patch anyway, so go ahead.
from crossfont.
cg_context.set_font_smoothing_style(16);
cg_context.set_allows_font_smoothing(false);
cg_context.set_should_smooth_fonts(false);
It seems to me like these three lines would be in conflict with each other? When you disable font smoothing, surely setting the font smoothing style doesn't make any sense?
from crossfont.
cg_context.set_font_smoothing_style(16);
cg_context.set_allows_font_smoothing(false);
cg_context.set_should_smooth_fonts(false);It seems to me like these three lines would be in conflict with each other? When you disable font smoothing, surely setting the font smoothing style doesn't make any sense?
then cg_context.set_font_smoothing_style(16);
should be moved to
else {
}
anyway, it works with the mod in my first post. all the non english words got thin strokes as well. (Prior to the mod, using Light font style could be a trick, but CJK words still show thick style )
from crossfont.
then cg_context.set_font_smoothing_style(16); should be moved to
You want to move logic that previously only applied to one conditional block to the opposite block? That doesn't make much sense, does it?
from crossfont.
then cg_context.set_font_smoothing_style(16); should be moved to
You want to move logic that previously only applied to one conditional block to the opposite block? That doesn't make much sense, does it?
well, i am not the one that made the patch, but i tested it, it works on macOS 12, all characters are thin stroke, with use_thin_strokes: true
. i don't quite know how the code works actually :)
from crossfont.
i don't quite know how the code works actually
Well, if nobody knows how the code works, then it certainly will not be merged.
If I'm going to send any PR to change the thin strokes behavior on macOS, it will be to remove it completely. I'm personally not interested in this feature and think it's not very beneficial to have anymore.
So if someone else actually cares about thin strokes, they should put in the effort to figure these things out and ensure they work on all macOS systems. Just sending in some patch that might work some of the time won't cut it.
from crossfont.
@chrisduerr I've been experimenting with this a bit and have a patch of crossfont and alacritty that decides what to do based on the AppleFontSmoothing
user default, which is what the system uses now to decide this behavior, rather than having this as a preference in alacritty/crossfont. Is this something you would be interested in? If so I can polish it up and push it for review, but don't want to waste your time if that's not an approach you'd prefer.
from crossfont.
@kchibisov Sure, I will open a PR and we can discuss further there.
from crossfont.
Related Issues (11)
- Migrate from Travis CI to github actions
- Fonts with mixed normal and colored glyphs are not working properly with fc/core text backend HOT 3
- freetype/fontconfig: loading a font which was installed after initializing a library will soft 'fail'
- Confused about text layout HOT 3
- Primary font ignores the fontconfig's charset property. HOT 4
- Add support for OT-in-SVG for freetype backend
- minimal-versions: freetype-rs dependency is too low HOT 7
- Alacritty ignores fontconfig minus charset option HOT 1
- switch from `servo-fontconfig` to `fontconfig` HOT 1
- Font metadata support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crossfont.