mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add support for small-caps font-variant.
Ref: 2554.
This commit is contained in:
parent
6177a3bdcc
commit
0dd1b85739
7 changed files with 32 additions and 14 deletions
|
@ -17,7 +17,7 @@ use platform::font_template::FontTemplateData;
|
|||
pub struct TextRun {
|
||||
pub text: Arc<String>,
|
||||
pub font_template: Arc<FontTemplateData>,
|
||||
pub pt_size: f64,
|
||||
pub actual_pt_size: f64,
|
||||
pub font_metrics: FontMetrics,
|
||||
/// The glyph runs that make up this text run.
|
||||
pub glyphs: Arc<Vec<GlyphRun>>,
|
||||
|
@ -123,7 +123,7 @@ impl<'a> TextRun {
|
|||
text: Arc::new(text),
|
||||
font_metrics: font.metrics.clone(),
|
||||
font_template: font.handle.get_template(),
|
||||
pt_size: font.pt_size,
|
||||
actual_pt_size: font.actual_pt_size,
|
||||
glyphs: Arc::new(glyphs),
|
||||
};
|
||||
return run;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue