-
Notifications
You must be signed in to change notification settings - Fork 106
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
Suggested solution #484 #485
base: master
Are you sure you want to change the base?
Conversation
fix: alignment in matrix by baseline
@@ -155,6 +155,6 @@ private static TeXFontMetrics GetFontMetrics(char c, Typeface typeface) | |||
var scalingFactor = typeface.FontFamily.LineSpacing / typeface.FontFamily.Baseline; | |||
height /= scalingFactor; | |||
|
|||
return new TeXFontMetrics(formattedText.Width, height, depth, 0, 1.0); |
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.
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.
Your solution doesn't solve the problem. In addition, it breaks other types of matrices.
Why have you reverted this? It seems wrong: it will stop preserving the "depth" of the system font characters.
Because the letters overhang is under the baseline. If an alignment by the baseline, then the overhang must be below the baseline (seems logic). Otherwise a characters will be above the required line (in this case will be need substract depth at boxes placing - it is also seems logic 🤔).
No description provided.