aboutsummaryrefslogtreecommitdiffstats
path: root/components/shared/compositing/lib.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-05-02 08:50:59 +0200
committerGitHub <noreply@github.com>2024-05-02 06:50:59 +0000
commit928214518cc2ed44112295c7aae675fc29f5a50b (patch)
tree4b4c13b6206792dd6dff2b4ecd1f0f5d6040b929 /components/shared/compositing/lib.rs
parent60613e77c589d736e6ccabc425eab332c44410fb (diff)
downloadservo-928214518cc2ed44112295c7aae675fc29f5a50b.tar.gz
servo-928214518cc2ed44112295c7aae675fc29f5a50b.zip
fonts: Use `FontInstanceFlags::EMBEDDED_BITMAPS` for color fonts on MacOS (#32203)
This flag ensures that these fonts are rendered full color in WebRender, allowing for full color emoji.
Diffstat (limited to 'components/shared/compositing/lib.rs')
-rw-r--r--components/shared/compositing/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/shared/compositing/lib.rs b/components/shared/compositing/lib.rs
index 6af096dbbbf..21f77a4cae6 100644
--- a/components/shared/compositing/lib.rs
+++ b/components/shared/compositing/lib.rs
@@ -25,7 +25,9 @@ use script_traits::{
};
use style_traits::CSSPixel;
use webrender_api::units::{DeviceIntPoint, DeviceIntSize, DeviceRect};
-use webrender_api::{self, FontInstanceKey, FontKey, ImageKey, NativeFontHandle};
+use webrender_api::{
+ self, FontInstanceFlags, FontInstanceKey, FontKey, ImageKey, NativeFontHandle,
+};
/// Sends messages to the compositor.
pub struct CompositorProxy {
@@ -139,7 +141,7 @@ pub struct CompositionPipeline {
}
pub enum FontToCompositorMsg {
- AddFontInstance(FontKey, f32, Sender<FontInstanceKey>),
+ AddFontInstance(FontKey, f32, FontInstanceFlags, Sender<FontInstanceKey>),
AddFont(Sender<FontKey>, u32, ipc_channel::ipc::IpcBytesReceiver),
AddSystemFont(Sender<FontKey>, NativeFontHandle),
}