mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
rustfmt
This commit is contained in:
parent
b94615b3eb
commit
35f1910297
1 changed files with 4 additions and 7 deletions
|
@ -6,7 +6,6 @@ use app_units::Au;
|
||||||
use core_foundation::array::CFArray;
|
use core_foundation::array::CFArray;
|
||||||
use core_foundation::base::{CFType, TCFType};
|
use core_foundation::base::{CFType, TCFType};
|
||||||
use core_foundation::dictionary::CFDictionary;
|
use core_foundation::dictionary::CFDictionary;
|
||||||
use core_foundation::number::CFNumber;
|
|
||||||
use core_foundation::string::CFString;
|
use core_foundation::string::CFString;
|
||||||
use core_graphics::data_provider::CGDataProvider;
|
use core_graphics::data_provider::CGDataProvider;
|
||||||
use core_graphics::font::CGFont;
|
use core_graphics::font::CGFont;
|
||||||
|
@ -103,12 +102,10 @@ impl FontTemplateData {
|
||||||
// that one.
|
// that one.
|
||||||
|
|
||||||
let attributes: CFDictionary<CFString, CFType> =
|
let attributes: CFDictionary<CFString, CFType> =
|
||||||
CFDictionary::from_CFType_pairs(&[
|
CFDictionary::from_CFType_pairs(&[(
|
||||||
(
|
CFString::new("NSFontNameAttribute"),
|
||||||
CFString::new("NSFontNameAttribute"),
|
CFString::new(&*self.identifier).as_CFType(),
|
||||||
CFString::new(&*self.identifier).as_CFType(),
|
)]);
|
||||||
),
|
|
||||||
]);
|
|
||||||
|
|
||||||
let descriptor = font_descriptor::new_from_attributes(&attributes);
|
let descriptor = font_descriptor::new_from_attributes(&attributes);
|
||||||
let descriptors = CFArray::from_CFTypes(&[descriptor]);
|
let descriptors = CFArray::from_CFTypes(&[descriptor]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue