schorsch1976 / AsciiFlowQT

QT Based Ascii Chart editor
GNU General Public License v3.0
16 stars 5 forks source link

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

Open asmwarrior opened 1 year ago

asmwarrior commented 1 year ago

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

image

asmwarrior commented 1 year ago
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