mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 12:08:11 +08:00
Use f64 not f32 throughout graph; add Vector2 value node (#1618)
* Use doubles in graph * Format .graphite files onto one line * Rename new node to Vector2 * No primary input --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
0e0e347435
commit
229b5dbb20
@@ -209,7 +209,7 @@ enum TextToolFsmState {
|
||||
pub struct EditingText {
|
||||
text: String,
|
||||
font: Font,
|
||||
font_size: f32,
|
||||
font_size: f64,
|
||||
color: Option<Color>,
|
||||
transform: DAffine2,
|
||||
}
|
||||
@@ -406,7 +406,7 @@ impl Fsm for TextToolFsmState {
|
||||
tool_data.editing_text = Some(EditingText {
|
||||
text: String::new(),
|
||||
transform: DAffine2::from_translation(input.mouse.position),
|
||||
font_size: tool_options.font_size as f32,
|
||||
font_size: tool_options.font_size as f64,
|
||||
font: Font::new(tool_options.font_name.clone(), tool_options.font_style.clone()),
|
||||
color: tool_options.fill.active_color(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user