Change default Text tool font to Cabin
This commit is contained in:
parent
1cc23320a5
commit
134c10b543
|
|
@ -77,7 +77,7 @@ pub const SCALE_EFFECT: f64 = 0.5;
|
||||||
pub const COLOR_ACCENT: Color = Color::from_rgbf32_unchecked(0x00 as f32 / 255., 0xA8 as f32 / 255., 0xFF as f32 / 255.);
|
pub const COLOR_ACCENT: Color = Color::from_rgbf32_unchecked(0x00 as f32 / 255., 0xA8 as f32 / 255., 0xFF as f32 / 255.);
|
||||||
|
|
||||||
// Fonts
|
// Fonts
|
||||||
pub const DEFAULT_FONT_FAMILY: &str = "Merriweather";
|
pub const DEFAULT_FONT_FAMILY: &str = "Cabin";
|
||||||
pub const DEFAULT_FONT_STYLE: &str = "Normal (400)";
|
pub const DEFAULT_FONT_STYLE: &str = "Normal (400)";
|
||||||
|
|
||||||
// Document
|
// Document
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
use super::tool_prelude::*;
|
use super::tool_prelude::*;
|
||||||
use crate::application::generate_uuid;
|
use crate::application::generate_uuid;
|
||||||
|
use crate::consts::{DEFAULT_FONT_FAMILY, DEFAULT_FONT_STYLE};
|
||||||
use crate::messages::portfolio::document::overlays::utility_types::OverlayContext;
|
use crate::messages::portfolio::document::overlays::utility_types::OverlayContext;
|
||||||
use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier;
|
use crate::messages::portfolio::document::utility_types::document_metadata::LayerNodeIdentifier;
|
||||||
use crate::messages::tool::common_functionality::color_selector::{ToolColorOptions, ToolColorType};
|
use crate::messages::tool::common_functionality::color_selector::{ToolColorOptions, ToolColorType};
|
||||||
|
|
@ -32,8 +33,8 @@ impl Default for TextOptions {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
font_size: 24,
|
font_size: 24,
|
||||||
font_name: "Merriweather".into(),
|
font_name: DEFAULT_FONT_FAMILY.into(),
|
||||||
font_style: "Normal (400)".into(),
|
font_style: DEFAULT_FONT_STYLE.into(),
|
||||||
fill: ToolColorOptions::new_primary(),
|
fill: ToolColorOptions::new_primary(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue