Skip to content

Comments

[201_2791] Fix tab cycling issue for stroke alphabet characters#2838

Open
Gitjay11 wants to merge 3 commits intoMoganLab:mainfrom
Gitjay11:fix/tab-cycling-stroke
Open

[201_2791] Fix tab cycling issue for stroke alphabet characters#2838
Gitjay11 wants to merge 3 commits intoMoganLab:mainfrom
Gitjay11:fix/tab-cycling-stroke

Conversation

@Gitjay11
Copy link
Contributor

@Gitjay11 Gitjay11 commented Feb 22, 2026

2026/02/22 Fix Tab Cycling for Stroke Alphabet Characters.

What

Fixed font fallback issues for stroke alphabet characters on Linux.

Why

To resolve issue #2791. Stroke characters were failing to render properly on Linux because the appropriate fallback fonts were not being loaded by Qt for the default system font, resulting in missing glyph boxes.

How

Updated the font fallback lists in src/Plugins/Qt/QTMApplication.hpp to manually inject FreeSerif and DejaVu Sans into the fallback substitutions for the default application font family (QFont::insertSubstitutions) specifically on Q_OS_LINUX. This ensures Qt can find and render the glyphs for stroke alphabet characters.

How to test

  1. Run Mogan on a Linux system.
  2. Enter math mode.
  3. Test direct shortcut: Type k then -, it should become a stroke k (<#A741>).
  4. Verify that the stroke k and other stroke characters (like c, d, f, l, o, p, s and their uppercase variants) render correctly without showing missing font boxes.

@da-liii
Copy link
Contributor

da-liii commented Feb 22, 2026

This fix is wrong.

@Gitjay11
Copy link
Contributor Author

Gitjay11 commented Feb 23, 2026

hi @da-liii , can you review it now?
All checks have passed

@Gitjay11 Gitjay11 force-pushed the fix/tab-cycling-stroke branch from d459d2e to 30fbebb Compare February 23, 2026 05:52
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.

2 participants