How to make the character size square

Hi,
Is that possible to make the character width and height even?
I'm trying to draw a character by text.
Thanks
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
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
Thank all of you for your help : )
Topic archived. No new replies allowed.