mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-09-09 22:46:16 +00:00
Add Brush tool warning; move font list loading to document creation time
This commit is contained in:
parent
457619794b
commit
de366f9514
13 changed files with 99 additions and 82 deletions
|
@ -442,13 +442,12 @@ impl EditorHandle {
|
|||
|
||||
/// A font has been downloaded
|
||||
#[wasm_bindgen(js_name = onFontLoad)]
|
||||
pub fn on_font_load(&self, font_family: String, font_style: String, preview_url: String, data: Vec<u8>, is_default: bool) -> Result<(), JsValue> {
|
||||
pub fn on_font_load(&self, font_family: String, font_style: String, preview_url: String, data: Vec<u8>) -> Result<(), JsValue> {
|
||||
let message = PortfolioMessage::FontLoaded {
|
||||
font_family,
|
||||
font_style,
|
||||
preview_url,
|
||||
data,
|
||||
is_default,
|
||||
};
|
||||
self.dispatch(message);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue