mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-18 07:48:02 +08:00
New Typography type
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user