New Typography type

This commit is contained in:
Adam
2025-09-07 21:16:05 -07:00
parent 593a89f2e2
commit f96a44c4bc
13 changed files with 348 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
use crate::gradient::GradientStops;
use crate::raster_types::{CPU, GPU, Raster};
use crate::table::Table;
use crate::text::Typography;
use crate::vector::Vector;
use crate::{Artboard, Color, Graphic};
@@ -31,6 +32,7 @@ impl RenderComplexity for Graphic {
Self::RasterGPU(table) => table.render_complexity(),
Self::Color(table) => table.render_complexity(),
Self::Gradient(table) => table.render_complexity(),
Self::Typography(table) => table.render_complexity(),
}
}
}
@@ -65,3 +67,9 @@ impl RenderComplexity for GradientStops {
1
}
}
impl RenderComplexity for Typography {
fn render_complexity(&self) -> usize {
1
}
}