https://bugs.kde.org/show_bug.cgi?id=527322
Bug ID: 527322
Summary: /run/media/gleycon/DOCUMENTOS/Ilha/Programas/Utilizado
s/Marknote/Remendos OpenCode/02 -
Remendo-Fonte-Do-Editor-Rico/Para a Equipe
Oficial/Remendo para o Repositório.patch
Classification: Applications
Product: Marknote
Version First 1.6.0
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: crash
Priority: NOR
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
Created attachment 197272
--> https://bugs.kde.org/attachment.cgi?id=197272&action=edit
Make the rich text editor honor `Config.editorFont` (family and size) by
applying it in `BlockText.qml` and `BlockTableCell.qml`.
# Bug Report
**Product:** Marknote
**Component:** Rich text editor (formatted Markdown)
**Version:** 1.6.0 and current master
**Type:** Bug (UX)
## Summary
In the rich text editor, changes to the configured font family and size in
Settings ▸ General are not applied to normal text blocks and table cells; they
still use Kirigami's default font.
## Steps to reproduce
1. Open Settings ▸ General and change "Font family" and "Font size".
1. Open a note and edit in formatted Markdown mode.
1. Observe that text blocks do not follow the configured font/size.
## Observed behavior
`BlockText.qml` and `BlockTableCell.qml` derive `fontSize`/`fontFamily` from
`Kirigami.Theme.defaultFont` and set `font.pointSize`/`font.family` directly,
ignoring `Config.editorFont`.
## Expected behavior
The rich text editor should honor `Config.editorFont` (family and size),
including table cells. Monospaced code blocks may keep their own style.
## Fix
- Read `Config.editorFont` in the relevant QML components.
- Detect whether size is in pixels or points.
- Centralize font construction in `makeFont(size[, weight])` using `Qt.font`
with a single unit (pixelSize OR pointSize) to avoid warnings.
- Apply the constructed font to TextEdit/TextArea (view and edit).
- Preserve existing heading/weight behavior.
--
You are receiving this mail because:
You are watching all bug changes.