mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +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.
|
||||
#[cfg(feature = "gecko")]
|
||||
pub (crate) fn needs_user_font_prioritization(&self) -> bool {
|
||||
self.iter().next().map_or(true, |f| match f {
|
||||
SingleFontFamily::Generic(f) => !f.valid_for_user_font_prioritization(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue