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

The text char is a bit small shown in the grid(wxWidgets + Windows) #5

Open
asmwarrior opened this issue Jul 22, 2023 · 1 comment
Open

Comments

@asmwarrior
Copy link

I just built the project under wx library on Windows, see the screen shot below:

image

@asmwarrior
Copy link
Author

diff --git a/src/Wx/wxAsciiArt.h b/src/Wx/wxAsciiArt.h
index 69559e7..56f3bb0 100644
--- a/src/Wx/wxAsciiArt.h
+++ b/src/Wx/wxAsciiArt.h
@@ -14,7 +14,7 @@ class wxAsciiArt : public wxScrolledWindow
 {
 public:
 	static constexpr int CELLSIZE = 12;
-	static constexpr int FONTSIZE = CELLSIZE - 4;
+	static constexpr int FONTSIZE = CELLSIZE;
 
 	wxAsciiArt();
 	wxAsciiArt(wxWindow *parent);

This way, the font can be a little bigger. See below screen shot:
image

The minor issue is that the base line is a bit low, so the character g is a bit low.

One suggestion, I think the "cell" in the grid should not be a unit square. I mean it could be a bit higher.

If you ever see a freeware named ascii art studio, see here: ASCII Art Studio (Freeware) | www.torchsoft.com you can see its cell is much higher, see the image below:

image

asmwarrior added a commit to asmwarrior/AsciiFlowQT that referenced this issue Jul 22, 2023
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

1 participant