mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix servo build.
This commit is contained in:
parent
16ca8de6df
commit
54b444992d
13 changed files with 148 additions and 143 deletions
|
@ -18,14 +18,11 @@ use platform::font_list::system_default_family;
|
|||
use platform::font_template::FontTemplateData;
|
||||
use servo_atoms::Atom;
|
||||
use servo_url::ServoUrl;
|
||||
use std::{fmt, f32, mem, thread};
|
||||
use std::borrow::ToOwned;
|
||||
use std::collections::HashMap;
|
||||
use std::fmt;
|
||||
use std::mem;
|
||||
use std::ops::Deref;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::thread;
|
||||
use std::u32;
|
||||
use style::font_face::{EffectiveSources, Source};
|
||||
use style::values::computed::font::{SingleFontFamily, FamilyName};
|
||||
use webrender_api;
|
||||
|
@ -63,7 +60,7 @@ impl FontTemplates {
|
|||
|
||||
// We didn't find an exact match. Do more expensive fuzzy matching.
|
||||
// TODO(#190): Do a better job.
|
||||
let (mut best_template_data, mut best_distance) = (None, u32::MAX);
|
||||
let (mut best_template_data, mut best_distance) = (None, f32::MAX);
|
||||
for template in &mut self.templates {
|
||||
if let Some((template_data, distance)) =
|
||||
template.data_for_approximate_descriptor(fctx, desc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue