How to make the character size square

Apr 18, 2020 at 7:26pm
Hi,
Is that possible to make the character width and height even?
I'm trying to draw a character by text.
Thanks
Apr 18, 2020 at 7:32pm
The text rendering is up to the terminal. It has nothing to do with the running program.

You could simply draw two characters per pixel.
HH    HH  EEEEEE  LL      LL      OOOOOOOO
HH    HH  EE      LL      LL      OO    OO
HHHHHHHH  EEEE    LL      LL      OO    OO
HH    HH  EE      LL      LL      OO    OO
HH    HH  EEEEEE  LLLLLL  LLLLLL  OOOOOOOO
Apr 18, 2020 at 7:43pm
I know the following doesn't really answer your question, but by default in Windows, the only square font in cmd appears to be the 8x8 Raster Font, so you'd have to set your cmd to be that.

Yes, it's very platform dependent and has nothing to do with C++ itself.
Last edited on Apr 18, 2020 at 7:44pm
Apr 18, 2020 at 7:51pm
Thank all of you for your help : )
Topic archived. No new replies allowed.