electron-api-demos icon indicating copy to clipboard operation
electron-api-demos copied to clipboard

Display nothing inside window?

Open okwh opened this issue 7 years ago • 3 comments

Win 7, win2008 Node.js is on your system? 8.11.2 v1.3.0 release electron-api-demos-windows.zip run OK, but nothing display inside window (main menus OK) when I run : npm start for source.

? maybe thers are not the font like font-family: 'BlinkMacSystemFont', 'Lucida Grande', 'Segoe UI', Ubuntu, Cantarell, sans-serif;

nodisplay

okwh avatar May 24 '18 09:05 okwh

I wonder if adding another font to that list means that it would choose that instead of the others? Definitely want to work on this

digitaldina avatar Nov 08 '18 14:11 digitaldina

Given that nothing is being rendered, I wonder if this is a hardware acceleration issue.

@okwh when running from source are you able to add app.disableHardwareAcceleration() just after this line and see if that changes the behaviour?

https://github.com/electron/electron-api-demos/blob/3a978054c38cfba89f09525a23a74f282280e6e0/main.js#L10

shiftkey avatar Nov 08 '18 14:11 shiftkey

I wonder if adding another font to that list means that it would choose that instead of the others?

sans-serif as the fallback font is one that all browsers should recognise. I don't believe this is related to fonts.

shiftkey avatar Nov 08 '18 14:11 shiftkey