Skip to content
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

Text weirdly spaced on Web #198

Open
JHubi1 opened this issue Jul 2, 2024 · 2 comments
Open

Text weirdly spaced on Web #198

JHubi1 opened this issue Jul 2, 2024 · 2 comments

Comments

@JHubi1
Copy link

JHubi1 commented Jul 2, 2024

I tried to build an application for web and desktop that has a terminal.

On desktop (windows for me) it works just fine:
Screenshot 2024-07-02 135051

But when I try to run the exact same app with the exact same code on web, this is shown:
Screenshot 2024-07-02 135101
It's functional and works in general, but looks pretty ugly. I tried it in multiple browsers as well, but it doesn't work.

@giovanni-grieco
Copy link

I have the same problem

@Sudakatux
Copy link

So i managed to solve this. turns out its just a font issue:

                    child: TerminalView(
                      terminal,
                      controller: terminalController,
                      autofocus: true,
                      backgroundOpacity: 1,
                      textStyle: TerminalStyle(
                        fontFamily: GoogleFonts.robotoMono().fontFamily!,
                        fontSize: 14,
                      ),
                    ),
                    ```
                    
This makes the trick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants