Make the Text tool control bar font family, style, and size sync with the selected layer (#4118)

* Fix contenteditable preview alignment

* Make the Text tool control bar font family, style, and size sync with the selected layer

* Tidying up
This commit is contained in:
Keavon Chambers
2026-05-06 20:50:41 -07:00
committed by GitHub
parent 2ae35a67e7
commit 24c857ddc7
6 changed files with 118 additions and 62 deletions
@@ -15,7 +15,7 @@ use crate::messages::tool::tool_messages::eyedropper_tool::PrimarySecondary;
use graph_craft::document::NodeId;
use graphene_std::raster::Image;
use graphene_std::raster::color::Color;
use graphene_std::text::{Font, TextAlign};
use graphene_std::text::Font;
use graphene_std::vector::style::FillChoice;
use std::path::PathBuf;
@@ -51,7 +51,9 @@ pub enum FrontendMessage {
max_width: Option<f64>,
#[serde(rename = "maxHeight")]
max_height: Option<f64>,
align: TextAlign,
align: String,
#[serde(rename = "alignLast")]
align_last: String,
},
DisplayEditableTextboxUpdateFontData {
#[serde(rename = "fontData")]