-
Notifications
You must be signed in to change notification settings - Fork 34
Return whether we loaded from a secondary font #81
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
base: master
Are you sure you want to change the base?
Conversation
chrisduerr
left a comment
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.
?
|
@chrisduerr it's needed for this alacritty/alacritty#663 (comment) |
|
I don't see how those relates, could you elaborate? |
|
@kchibisov see the Alacritty change depending on this - The idea is to be able to align the letters in the center:
But it only needs to apply if a secondary font was picked. Can you see this implemented in Alacritty without this change? |
Why are you making decisions based on it being a secondary font or not? That seems irrelevant for your example. Sounds like you're just trying to shoehorn a non-monospace font, or a font with different monospace width, into the width of the primary font. |
|
If you want to do so, I'd assume a completely different approach to shift everything by a main font baseline, so they characters align, which might be not a bad idea. |
|
@kchibisov Maybe the issue with my original change, that the fixup for the secondary font: |
|
I'm just saying that you don't need this change to crossfont to implement what you want, you know that font is different by the fontkey. |
|
@kchibisov I'm confused - looks to me that |
|
Hm, indeed. You can generally, identify downstream whether and how you need to make adjustment, since you know what the glyph from the main font looks like (the one you've initially asked for). Though, I agree that API is not optimal, since we don't have metric information for fallback fonts, and what fallback font even is, since we use information from the main font primary. That being said, the proposed API feels more like a hack, rather than proper way to give a clear description of fonts and identity of fallback fonts. |

No description provided.