mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Convert internal font code to store pt size as Au.
This commit is contained in:
parent
cf789e40c5
commit
8331cfe089
6 changed files with 24 additions and 23 deletions
|
@ -59,10 +59,10 @@ pub struct FontHandle {
|
|||
impl FontHandleMethods for FontHandle {
|
||||
fn new_from_template(_fctx: &FontContextHandle,
|
||||
template: Arc<FontTemplateData>,
|
||||
pt_size: Option<f64>)
|
||||
pt_size: Option<Au>)
|
||||
-> Result<FontHandle, ()> {
|
||||
let size = match pt_size {
|
||||
Some(s) => s,
|
||||
Some(s) => s.to_subpx(),
|
||||
None => 0.0
|
||||
};
|
||||
match template.ctfont {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue