Arbitrary font size preference is allowed
See original GitHub issueDescription
If you set a large font size in the preferences marktext does not complain and evidently complies. As a a result it is impossible to see anything in the application window.
Steps to reproduce
- Change the font size to 2416 in the preferences
- Save the preferences and exit marktext
- Open marktext and try to edit the preferences. You get white window contents.
Expected behavior: marktext notices the font size is crazy large, complains to the user and replaces it with a default of 16 pts.
Actual behavior:
All you see is a blank page. No error message is displayed
Example preference file:
{
"fontSize": "2416px",
"lightColor": "rgb(48, 49, 51)",
"darkColor": "rgb(217, 217, 217)",
"lineHeight": 2,
"theme": "light",
"autoSave": true,
"aidou": false,
"preferLooseListItem": true,
"autoPairBracket": true,
"autoPairMarkdownSyntax": true,
"autoPairQuote": true
}
Versions
- Mark Text: v 0.10.21
- OS: macOS 10.11.6 El Capitan
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Why do Latex classes often have font size limitations? - TeX
Only 8 points or larger ? With the memoir class you can use 23 font sizes from 4pt to 132pt and also the...
Read more >Use Rems for Font Size to Respect User Preferences
A First Attempt with em ... For this reason, ems are not recommended for font sizing because an element may be nested arbitrarily...
Read more >Font size does not change - LaTeX.org
I would prefer scrreprt, it allows arbitrary base font sizes given in arbitrary units. But more important, it provides a lot more features ......
Read more >Designing accessible text for Android: variable font ... - Medium
Designing Android mobile app UIs for people with poor vision starts with allowing for variable font and screen sizes. Here are some tips...
Read more >How to make Windows Ribbon Framework honor user's font ...
(That question was about how to set an arbitrary font face and size - which could be used to honor the user's Windows...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Sure also a good idea, but I don’t want to reset my settings to test an issue.
Some key points why we should build a GUI for settings:
Furthermore we should add a
--safemode in the new settings to run Mark Text without loading user settings, themes and plugins. So that we/the user can test issues in “safe mode” without loading user configuration.Cons: