mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
♻️ Refactor and rename ParagraphBuilder instantiating from TextContent
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use crate::shapes::text::TextContent;
|
||||
use crate::{shapes::text::TextContent, textlayout::paragraph_builders_from_text};
|
||||
use skia_safe::{
|
||||
self as skia, textlayout::Paragraph as SkiaParagraph, FontMetrics, Point, Rect, TextBlob,
|
||||
};
|
||||
@@ -20,7 +20,7 @@ impl TextPaths {
|
||||
let mut paths = Vec::new();
|
||||
|
||||
let mut offset_y = self.bounds.y();
|
||||
let mut paragraphs = self.to_paragraphs(None, None, None);
|
||||
let mut paragraphs = paragraph_builders_from_text(&self.0, None, None, None);
|
||||
|
||||
for paragraphs in paragraphs.iter_mut() {
|
||||
for paragraph_builder in paragraphs.iter_mut() {
|
||||
|
||||
Reference in New Issue
Block a user