Boostnote: Font is blurry. Please use subpixel anti-aliasing.

Created on 9 Feb 2018  路  3Comments  路  Source: BoostIO/Boostnote

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?

bug help wanted

All 3 comments

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 https://github.com/electron/electron/issues/8708

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

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

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

npeeples picture npeeples  路  3Comments

cyber-arsenull picture cyber-arsenull  路  3Comments

N2ITN picture N2ITN  路  3Comments

NonlinearFruit picture NonlinearFruit  路  3Comments

shunchuan picture shunchuan  路  3Comments