-
Notifications
You must be signed in to change notification settings - Fork 57
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 not rendering #3
Comments
Thank for your report. Hmm...
console.log(process.versions) Note: I'm also using OS X 10.11.1 and tried latest nyaovim package but it worked. |
You're welcome :) console.log(process.versions) ares: "1.10.1-DEV"
atom-shell: "0.36.1"
chrome: "47.0.2526.73"
electron: "0.36.1"
http_parser: "2.6.0"
modules: "47"
node: "5.1.1"
openssl: "1.0.2e"
uv: "1.7.5"
v8: "4.7.80.23"
zlib: "1.2.8" |
The output looks the same as mine. |
No, it's seems to be okay, but i'll try to dig deeper (I'm currently at work). I have powerline installed for my terminal and my vim statusbar. I thought it could be the problem, but as I told you, even when I remove all my vim/neovim config, the font still does not render. |
Thank you for your analysis. Very helpful :) I want to reproduce this because it is hard to fix a bug without reproducing. If you can, could you show me your init.vim? (Of course after your work ;) ) |
You're welcome ^^ You can find my full .vim here : https://github.com/gnujeremie/dotvim (I symlink to .config/nvim and init.vim after). I just have these lines specifically on my work station at the end of the .vimrc
|
Hi @gnujeremie, Sorry for late response. I tried your config and somehow I could start your nvim (Note that this plugin seems to have been removed.) And I have one question. If you're using such a font, could you set other font to <neovim-editor id="nyaovim-editor" argv$="[[argv]]" font="Courier,monospace" ></neovim-editor> Pelase note that |
Hi, Thanks. |
Hi, No problem. I'm not in a hurry. |
Ok so I changed the line as you said, the problem is still there. |
Thank you for your check. Hmm... then I think this is a bug of Chromium (or Electron) side... Finally could you try disabling WebGL by modifying --- old.js 2015-12-29 01:11:18.000000000 +0900
+++ main.js 2015-12-29 01:11:38.000000000 +0900
@@ -52,6 +52,9 @@
width: 800,
height: 600,
useContentSize: true,
+ webPreferences: {
+ webgl: false
+ }
});
win.once('closed', function () {
win = null; It should disable GL in canvas. |
Still no differences. |
Thank you for your check.
It's very helpful for me. If you do that, could you please let me know the issue URL? |
I posted a question in Atom forum. |
Ok thanks :) |
By way of "me-too": I have the same issue. OS X 10.10.5 (14F1021) Output in the terminal:
Versions: Setting Courier as default font doesn't help, nor does adding the webgl: false in main.js (assuming that worked — is there any way to check that from within the debugger console? |
Same issue for me on OS X El Capitan. Many lines like this are shown:
|
Thank you for report. Hmm... no one seems not to know resolution of this problem in forum and Google Search also could not help (Only old bug report was found). |
It's a Chromium bug. On this old page there are a similar bug ( On my Windows 7 I did notice the same problem 😕 |
We are having also this issue with our app using https://github.com/atom/electron and font rendering in canvas elements at OSX, so I guess it's a bug with their chromium version. I couldn't find yet an issue reported there about this font render error, but I don't think this is directly related to NyaoVim. |
Thanks. Forum also seems not able to help this issue. I'll report this to Electron repository. Could you tell me what your app's Electron version is? As @marcj said, this may depend on Chromium version. I want to confirm the latest Electron (0.37.8) causes this error yet. |
I updated nyaovim (v 0.0.17), electron is version 0.36.8, the issue is still here. |
Thank you! |
I added a workaround for this and bumped up version to 0.0.18, which was suggested in electron/electron#4594 . Could you create {
"enable_canvas_workaround": true
} |
Cool. I will try to use tonight and give you a feedback. |
Thank you for your confirmation. Then I'll revert the workaround 😭 |
Don't give up, sooner or later we'll find a fix :) |
Maybe that webgl isn't enabled on the chrome that comes with nyaovim. Also we can try others options for the --use-gl flag. The flag used before (egl) still was using opengl, that is why the problem remains. |
Another custom Electron app user here: |
I tried this today and can confirm that 0.35.6 solves this problem for me. Unfortunately, 0.37.2 doesn't. Also, I had to comment out the |
The problem may be related to this issue. |
@ohle with 0.37.4 did work? |
Latest NW.js 0.14.0 fixed the same issue. NyaoVim could consider migration. |
That's good news. Thank you. Do you know which Chromium version NW.js 0.14.0 is based on? |
@rhysd latest Chromium stable 50.0.2661.75 . The same issue reported is nwjs/nw.js#4618 |
@GnorTech Thank you. I confirmed that Electron v0.37.5 is based on Chromium 49.0.2623.75. So I'll ping to this issue when Electron is based on Chromium 50. |
Same as @p0009231 , setting the language to English fixed the problem. |
Nice find @p0009231. If opening from command line one can always set LANG="en_EN.UTF-8" then open nyaovim. This way the OS language doesn't have to be changed. |
@rhysd What about update Electron for the latest version? |
Yes, latest Electron (v1.1.0) seems to use Chrome 50 🎉 I'll update tonight. |
I updated Electron version in local environment and found behavior of I need to update and fix |
Hi @rhysd, any update on this issue? Actually this is the only reason because I still don't use NyaoVim, that is why I'm so obsessed about 😁 |
I fixed |
@adelarsq I updated NyaoVim to v0.0.20 (Electron v1.2.7). Could you try it? |
@rhysd Yeah! Nice! Did work! 🎆 Before I got this error on OS X:
But was able to solve using (microsoft/WSL#14):
And trying to install again. |
Please do not use |
@rhysd Thanks. I did reinstall with
Tomorrow I will see whats is this. 😴💤 |
You forgot adding
|
@rhysd the command only works with sudo:
I don't understand the error. With some time I will try to figure out what is wrong. |
Hmm... that looks a problem depending on your environment... I recommend to install Node.js via Homebrew or Node.js version manager like nvm, nodebrew, and so on. Anyway, this issue was resolved 🎉 |
It's some weird problem on my OS X. But the main problem is solved. Thanks @rhysd 👏 👏 |
I have a problem with the font not rendering correctly. I don't know if it's an electron or an nyaovim problem (or a 'my bad' problem :-D).
I removed my init.vim (neovim's vimrc), but the issue is still there.
I don't know if it's related, but the terminal displays this line a lot :
Under Mac OSX 10.11.1, and the latest version of nyavim installed with npm.
The text was updated successfully, but these errors were encountered: