aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/font.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/gfx/font.rs')
-rw-r--r--components/gfx/font.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/gfx/font.rs b/components/gfx/font.rs
index 1ea59c73fd5..89553b80990 100644
--- a/components/gfx/font.rs
+++ b/components/gfx/font.rs
@@ -831,6 +831,7 @@ impl FontFamilyDescriptor {
/// ];
/// let mapped_weight = apply_font_config_to_style_mapping(&mapping, weight as f64);
/// ```
+#[cfg(any(target_os = "linux", target_os = "macos"))]
pub(crate) fn map_platform_values_to_style_values(mapping: &[(f64, f64)], value: f64) -> f64 {
if value < mapping[0].0 {
return mapping[0].1;