Darazaki / Spedread

GTK speed reading software: Read like a speedrunner!
GNU General Public License v3.0
61 stars 5 forks source link

No newline characters #6

Closed NuSynth closed 2 years ago

NuSynth commented 2 years ago

The words with the newline characters at the end of the strings are displayed higher than the other words. This causes me to look up quicky before the word is no longer displayed. If the newline character were treated as a space character instead, then this would alleviate the problem.

NuSynth commented 2 years ago

Not really sure how it's done in Vala, since I haven't worked with it in a while. But in C it would be something like:

` int c;

while ((c = getchar()) != EOF)
{
  if (c == '\n')
    printf(" ");

  if (c != '\n')
    printf("%c", c);
}

`

Darazaki commented 2 years ago

Thanks for telling me! I actually don't have this bug, could you tell me what font you're using? (either in Spedread if you've set it manually or else your system font)

I have a pretty good idea of how to fix that bug though so I should hopefully be able to patch it today :)

Darazaki commented 2 years ago

I've decided to push the patch I made but since I couldn't replicate your issue I'm not certain it fixed it :/

It does fix a minor annoyance with spaces before words slightly changing how the words are shown so it should hopefully fix everything

Please reopen this issue if you still notice some issues!