If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: How to set same pixel size for each character ?

Originally Posted by mr.sam1024

Does anybody know how to set same pixel size for each character ?

As usual, your question is NOT clear.
However, if you still continue to struggle with your Richedit control then I'd recommend you to look at the Monospaced font
IOW you need to choose some of available monospaced fonts (like courier or some others)

Re: How to set same pixel size for each character ?

Yes, Monospaced font have fixed-wdith, but other fonts like "Terminal" "MS Gothic" "Times New Roman" Each character (A - Z , a -Z , 0 - 9) have occupy different size (in pixels). So that can we do it programmetically to set same size for each character ?

Re: How to set same pixel size for each character ?

Originally Posted by mr.sam1024

Yes, Monospaced font have fixed-wdith, but other fonts like "Terminal" "MS Gothic" "Times New Roman" Each character (A - Z , a -Z , 0 - 9) have occupy different size (in pixels). So that can we do it programmetically to set same size for each character ?

No, we cannot! Period.
Or you would have to implement your own window class where you'd make all drawing with your own fonts (but again, these "your own fonts" will have nothing to do with the standard ones)

Re: How to set same pixel size for each character ?

Originally Posted by mr.sam1024

Yes, Monospaced font have fixed-wdith, but other fonts like "Terminal" "MS Gothic" "Times New Roman" Each character (A - Z , a -Z , 0 - 9) have occupy different size (in pixels). So that can we do it programmetically to set same size for each character ?

Re: How to set same pixel size for each character ?

Originally Posted by mr.sam1024

Yes, Monospaced font have fixed-wdith, but other fonts like "Terminal" "MS Gothic" "Times New Roman" Each character (A - Z , a -Z , 0 - 9) have occupy different size (in pixels). So that can we do it programmetically to set same size for each character ?

You can't. But as you've been told, you're headed in the wrong direction. I'd still like to know why you're insisting on a RichEdit Control. There are other, much more appropriate ways to do what you're trying to do.

Re: Set same Pixel size for each character

GCDEF,
can you tell me what are the other appropriate ways to do ?

I'm implementing terminal (lly like Hyper Terminal) So that i choosen RichEdit Control and Need to implement VT-100 Emulation type to support ANSI escape sequences. I'd discussed about this in other thread.

Re: Set same Pixel size for each character

Originally Posted by mr.sam1024

... and Need to implement VT-100 Emulation type to support ANSI escape sequences. I'd discussed about this in other thread.

No, you did not.
Instead you only asked some meaningless questions about rows/columns in the empty rich edit control!
Note also that "Hyper Terminal" window is not a rich edit control nor does it support any row/column concept.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.