question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Arbitrary font size preference is allowed

See original GitHub issue

Description

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

  1. Change the font size to 2416 in the preferences
  2. Save the preferences and exit marktext
  3. 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:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
fxhacommented, May 20, 2018

How about a reset to default setting ?

Sure also a good idea, but I don’t want to reset my settings to test an issue.

1reaction
fxhacommented, May 20, 2018

Some key points why we should build a GUI for settings:

  • easier to use from a users point of view
  • less error prone (because someone type in invalid values)
  • we can integrate custom themes and plugin-settings later
  • we do not have to convert old settings to new settings (and support old settings format) - because of pre-release version
  • @Jocs we can seperate settings from GUI (Mark Text) and the “core”

Furthermore we should add a --safe mode 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:

  • more work for us 😄
  • we delete all user settings
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found