Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font is blurry. Please use subpixel anti-aliasing. #1522

Closed
necan opened this issue Feb 9, 2018 · 3 comments
Closed

Font is blurry. Please use subpixel anti-aliasing. #1522

necan opened this issue Feb 9, 2018 · 3 comments
Labels
bug 🐛 Issue concerns a bug. help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new!

Comments

@necan
Copy link

necan commented Feb 9, 2018

OS: Windows 10 1709
Resolution: 1366*768 14 inches

All fonts except Menu bar are blurry. I find boostnote is using grayscale anti-aliased.

tim 20180209164228
tim 20180209164257
tim 20180209164521

Only fonts in Menu bar are using subpixel anti-aliasing.

tim 20180209164318
tim 20180209164434

but when I open the html exported by Boostnote in chrome, font is normal.

tim 20180209165423
tim 20180209165521

Maybe it's electron's issue, but I found it seems fixed in #6344.

So how to turn on subpixel anti-aliasing on Boostnote?

@necan necan changed the title Font is blurry. Please using sub-pixel anti-aliasing. Font is blurry. Please use subpixel anti-aliasing. Feb 9, 2018
@Redsandro
Copy link
Contributor

This is an issue with Electron, not Boostnote. When Electron is fixed, Boostnote will be fixed.

You can close this issue and track the progress upstream in electron/electron#8708

@Rokt33r Rokt33r added bug 🐛 Issue concerns a bug. help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new! labels Feb 20, 2018
@csadam
Copy link

csadam commented Jan 25, 2019

To solve the problem,
add the backgroundColor: '#fff', parameter
to the const mainWindow = new BrowserWindow({ declaration
in the %APPDATA%..\Local\boost\app-0.11.12\resources\app\lib\main-window.js file.

for example:

const mainWindow = new BrowserWindow({
  backgroundColor: '#fff',  //<-- add this
  x: windowSize.x,
  y: windowSize.y,
  width: windowSize.width,
  height: windowSize.height,
  useContentSize: true,
  minWidth: 500,
  minHeight: 320,  
  autoHideMenuBar: showMenu,
  webPreferences: {
    zoomFactor: 1.0,
    enableBlinkFeatures: 'OverlayScrollbars'
  },
  icon: path.resolve(__dirname, '../resources/app.png')
})

Reference: link

@necan
Copy link
Author

necan commented Jan 29, 2019

@csadam thanks, it works. But it won't be applied after updating, I have to modify main-window.js again.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issue concerns a bug. help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new!
Projects
None yet
Development

No branches or pull requests

5 participants