compile defaults for textlayout handles only when the feature is enabled
//! This file contains Default trait implementations for types that are
//! used without a handle in skia-safe and get reexported from there.
+#[cfg(feature = "textlayout")]
+pub mod textlayout {
impl Default for crate::skia_textlayout_Affinity {
fn default() -> Self {
Self::Upstream
@@ -51,3 +53,4 @@ impl Default for crate::skia_textlayout_StyleType {
Self::AllAttributes
}
}
+}
