macos: Remove font size attribute from font descriptor.

This commit is contained in:
Josh Matthews 2019-10-07 12:04:53 -04:00 committed by GitHub
parent 4c76b7a758
commit b94615b3eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,10 +108,6 @@ impl FontTemplateData {
CFString::new("NSFontNameAttribute"),
CFString::new(&*self.identifier).as_CFType(),
),
(
CFString::new("NSFontSizeAttribute"),
CFNumber::from(clamped_pt_size).as_CFType(),
),
]);
let descriptor = font_descriptor::new_from_attributes(&attributes);