mirror of
https://github.com/servo/servo.git
synced 2025-10-04 10:39:16 +01:00
Further changes required by Servo
This commit is contained in:
parent
a9baf5fe3d
commit
f911fb4f0f
1 changed files with 1 additions and 0 deletions
|
@ -628,6 +628,7 @@ impl FontFamilyList {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns whether we need to prioritize user fonts.
|
/// Returns whether we need to prioritize user fonts.
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
pub (crate) fn needs_user_font_prioritization(&self) -> bool {
|
pub (crate) fn needs_user_font_prioritization(&self) -> bool {
|
||||||
self.iter().next().map_or(true, |f| match f {
|
self.iter().next().map_or(true, |f| match f {
|
||||||
SingleFontFamily::Generic(f) => !f.valid_for_user_font_prioritization(),
|
SingleFontFamily::Generic(f) => !f.valid_for_user_font_prioritization(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue