Skip to content

fix(drawify): use handwriting font for drawn nodes and links - #249

Merged
winlp4ever merged 1 commit into
mainfrom
fix/drawify-handwriting-font
Aug 24, 2026
Merged

fix(drawify): use handwriting font for drawn nodes and links#249
winlp4ever merged 1 commit into
mainfrom
fix/drawify-handwriting-font

Conversation

@winlp4ever

Copy link
Copy Markdown
Contributor

What

Drawify's drawn nodes and links now use the handwriting font instead of informal.

Why

convert_drawify_output_to_notes_links explicitly set font_family = FontFamily.INFORMAL on both notes (drawify.py:85) and links (:112), overriding the Style default of FontFamily.HANDWRITING. The frontend keeps drawify's style verbatim (storeMindMap({ preserveStyle: true })), so that override reached the canvas — drawn output rendered in the informal font rather than the board's default hand-drawn look.

Change

Two lines: FontFamily.INFORMALFontFamily.HANDWRITING on the note and the link. (Left as explicit assignments, matching the surrounding style-setting lines, rather than dropping to the implicit default.)

Testing

No test pins drawify's font (the only font_family assertions in the suite are for an unrelated serif op-apply case). ruff wasn't available in my environment, but the change is a swap between two existing, already-imported FontFamily enum members — no import, formatting, or line-length impact.

Drawify explicitly overrode the font to INFORMAL on both notes and links;
switch back to HANDWRITING (the Style default) so drawn output matches the
board's default hand-drawn look.
@winlp4ever
winlp4ever merged commit b405364 into main Aug 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant