Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Theide and LineEdit fix for Chinese font display.
Re: Theide and LineEdit fix for Chinese font display. [message #21630 is a reply to message #21555] |
Sat, 30 May 2009 09:00   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
gxl117 wrote on Tue, 26 May 2009 06:18 | Now it's hasn't display problem. before fix, all non-FIXEDPITCH font can't perfect display. style is sparse and ugly.
|
Actually, before fix, only monospaced fonts (FIXEDPITCH) are allowed in LineEdit. Your fix basically seems to
- allow variable spaced fonts in CodeEditor
- if font is variable-spaced, use only half the width of average (perhaps quite OK if there is a lot of CJK ideograms in the font)
I am not sure this fix is correct, e.g. it will allow you to use "Arial" (in Win32) and then the result will be very bad...
I second the question:
Please, list the font
- you had problem with
- you are using now
As an alternative fix, maybe you could try:
Size LineEdit::GetFontSize() const {
FontInfo fi = font.Info();
return Size(max(fi['M'], fi['W']), fi.GetHeight());
}
Mirek
|
|
|
 |
|
Theide and LineEdit fix for Chinese font display.
By: gxl117 on Tue, 26 May 2009 11:42
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Tue, 26 May 2009 11:45
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Tue, 26 May 2009 11:47
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Tue, 26 May 2009 12:05
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Tue, 26 May 2009 12:18
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: mirek on Sat, 30 May 2009 09:00
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Sat, 30 May 2009 10:21
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: mirek on Sat, 30 May 2009 15:27
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Sat, 30 May 2009 15:48
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Sun, 31 May 2009 01:57
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: mirek on Sun, 31 May 2009 13:50
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Sun, 31 May 2009 14:23
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Sun, 31 May 2009 17:05
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: mirek on Sun, 31 May 2009 22:02
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Mon, 01 June 2009 01:13
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: mirek on Mon, 01 June 2009 08:48
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: mirek on Mon, 01 June 2009 09:29
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Mon, 01 June 2009 11:46
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: mirek on Sun, 31 May 2009 22:02
|
 |
|
Re: Theide and LineEdit fix for Chinese font display.
By: gxl117 on Mon, 01 June 2009 01:06
|
Goto Forum:
Current Time: Sat Aug 09 17:51:38 CEST 2025
Total time taken to generate the page: 0.02423 seconds
|