Canvas::drawTextBlob: initialize icu only if textlayout and embed-icudtl is set
@@ -1906,8 +1906,8 @@ impl Canvas {
paint: &Paint,
) -> &mut Self {
let origin = origin.into();
- #[cfg(feature = "embed-icudtl")]
- skia_bindings::icu::init();
+ #[cfg(all(feature = "textlayout", feature = "embed-icudtl"))]
+ crate::icu::init();
unsafe {
self.native_mut().drawTextBlob(
blob.as_ref().native(),
