Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
Gitjay11 wants to merge 3 commits intoMoganLab:mainMoganLab/mogan:mainfrom
Gitjay11:fix/tab-cycling-strokeGitjay11/mogan:fix/tab-cycling-strokeCopy head branch name to clipboard
Closed

[201_2791] Fix tab cycling issue for stroke alphabet characters#2838
Gitjay11 wants to merge 3 commits intoMoganLab:mainMoganLab/mogan:mainfrom
Gitjay11:fix/tab-cycling-strokeGitjay11/mogan:fix/tab-cycling-strokeCopy head branch name to clipboard

Conversation

@Gitjay11
Copy link
Copy Markdown
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
Copy Markdown
Contributor

da-liii commented Feb 22, 2026

This fix is wrong.

@Gitjay11
Copy link
Copy Markdown
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
Comment thread TeXmacs/progs/math/math-kbd.scm Outdated
@JackYansongLi
Copy link
Copy Markdown
Contributor

The PR does not work. Please test locally on your machine before pushed into Github. The test on Github is for compiling. You should compile Mogan and Test functionality on your local machine!

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.