-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Lose the space after the period. #1463
Comments
There was a similar issue reported before, and then it was a font issue. In either case, the text editor itself is provided by the Qt library, so and I don't control the rendering of the text itself. Could you try switching editor font on novelWriter on the Mac? |
I tried arial and new times roman on new projects.
problem is the same.
Not that big an issue with me as i spend most of my time on linux and if you select show tabs and spaces I can see that the spaces are fine.
Just thought you would like to know.
thanks
Get BlueMail <https://bluemail.me> for Desktop
Veronica Berglyd Olsen wrote:
There was a similar issue reported before, and then it was a font issue. In either case, the text editor itself is provided by the Qt library, so and I don't control the rendering of the text itself.
Could you try switching editor font on novelWriter on the Mac?
—
Reply to this email directly, view it on GitHub <#1463 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ARQKBM67J53AG2SI5BBLXW3XKUXPVANCNFSM6AAAAAAZB66GGA> .
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This is strange then. In the past, rendering issues have been due to certain fonts and font kerning. I doubt there is anything wrong with the actual files. Everything is just plain text, with no rich text overlay aside from the syntax highlighter. But you can just in case check the files in the content subfolder of your project. They are plain text files, so you can open them in another app on the mac and have a look. If there is indeed some rendering issue on the mac, it is in any case likely in the QTextEdit widget of the Qt library. I don't hook into that layer of functionality from the novelWriter code, as that would be far too slow from Python. I have a VM with macOS Catalina, and can check there, just in case. |
Considering that the OP stated that the problem is only there on Mac and Linux is fine, we can safely assume that the NovelWriter files are fine. Indeed, like this sounds more like a rendering issue of bug in the Mac version of the QT component. |
Well, I gave it a test by coying over a project on Linux to the macOS Catalina VM with rsync, and opened it. I could not reproduce the problem. Everything looked fine. |
I have the same problem. As far as I can tell, it's not about the font, because the space is literally gone. I was thinking that it might be some sort of autocorrect, though I have no clue as to what sort that might be. EDIT: NVM, copying from novelwriter to Notes causes the spaces to appear. So yeah, rendering issue it is. According to this issue, it seems to affect QT 5 but not 6. Does novelWriter use QT 5? |
There is no autocorrect that edits text unless you're actively typing. There are also no part of novelWriter that hooks into the Qt text rendering process, as mentioned. This is very likely to be a Qt issue, and yes, novelWriter runs on Qt5. Do you have a link to a bug report? If there is a version of Qt 5 where this is fixed, I can make a new release for MacOS using that instead. |
Oh, sorry, I thought I pasted the link. Here: https://bugreports.qt.io/browse/QTBUG-88495 |
Thanks! Interesting that it's reported for Catalina, which I couldn't reproduce. There's not much I can do to solve it other than check which patch version of Qt5.15 they eventually fix it for, and make sure the DMG releases are using that version. That's dependant on the PyQt5 releases on Conda though, which the Mac DMG release of novelWriter depends on. |
Oh, I tried changing font, and that solved it for me. I wonder now, the default setting is something like AppleUISystemFont or similar. Maybe that is acting weird in some way? |
That should be the default for the GUI, but not for the editor. For MacOS it should default to Courier, but if that's not available, it will default to the UI font, yes. |
I don't have Courier on my machine, but I do have Courier New. |
That may explain why it falls back to the UI font, yes. I tested the implementation on MacOS Catalina, and had Courier there, so that's what I set as default. A solution here would be to provide a few font options. It's not a problem for novelWriter to iterate through a few to pick one before it falls back to the UI font. Feel free to post suggestions here. They should be generally available on MacOS and be fairly standard. Like whatever Safari, word processors, or whatever, would pick as defaults. |
I'm changing the default font on MacOS to Helvetica. Can you confirm if changing the font works, @mcrislip? I know you initially said it didn't, but since it worked for others, maybe you've tried some more fonts? Make sure you change the font under Preferences -> Documents, and not the GUI font. |
Im away from my mac for a while, but will do it next week and let you
know.
…On Wed, Jul 19 2023 at 04:27:51 PM -07:00:00, Veronica Berglyd Olsen ***@***.***> wrote:
I'm changing the default font on MacOS to Helvetica. Can you confirm
if changing the font works, @mcrislip <https://github.com/mcrislip>?
I know you initially said it didn't, but since it worked for others,
maybe you've tried some more fonts? Make sure you change the font
under Preferences -> Documents, and not the GUI font.
—
Reply to this email directly, view it on GitHub
<#1463 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARQKBM6SSXNZGE7LTQR4SGTXRBUPPANCNFSM6AAAAAAZB66GGA>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'm closing this now. We can always reopen it if the issue remains. |
I do most of my writing on Linux/Zorin 16.2. Occasionally I need to use a mac (ventura 13.4). Both have the same, most recent version of NovelWriter.
I just noted that on the mac side, all the single spaces after a period and comma are gone.
They are maintained on the linux side. On the mac, after you type a period or comma, then space, and start the next word, the space goes away. However, on the linux side the space is there. And if you correct the problem in the mac side so you see a single space after a period or comma, you get two spaces on the linux side. Kind of odd.
The text was updated successfully, but these errors were encountered: