Skip to content

Commit

Permalink
fix: baseline middle
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Dec 8, 2023
1 parent 88d786e commit 1126a75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl Context {
- font_metrics.ascent * HANGING_AS_PERCENT_OF_ASCENT / 100.0;
}
TextBaseLine::MIDDLE => {
baseline_offset = paragraph.height() / 2.;
baseline_offset = -paragraph.height() / 2.;
}
TextBaseLine::ALPHABETIC => {
baseline_offset = -alphabetic_baseline;
Expand Down

0 comments on commit 1126a75

Please sign in to comment.