mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
remove SendableTextRun & remove @mut Font From TextRun&Shaper(Font),Font.shaper,
fontfamily,fontgroup,render_context.font_ctx
This commit is contained in:
parent
c60ab361a5
commit
964b5e9d9a
13 changed files with 146 additions and 113 deletions
|
@ -711,7 +711,7 @@ impl Flow for InlineFlow {
|
|||
|
||||
// Find the top and bottom of the content area.
|
||||
// Those are used in text-top and text-bottom value of 'vertical-align'
|
||||
let text_ascent = text_box.run.font.metrics.ascent;
|
||||
let text_ascent = text_box.run.font_metrics.ascent;
|
||||
|
||||
// Offset from the top of the box is 1/2 of the leading + ascent
|
||||
let text_offset = text_ascent + (line_height - em_size).scale_by(0.5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue