|
|
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 #21552 is a reply to message #21551] |
Tue, 26 May 2009 12:05 |
gxl117
Messages: 71 Registered: March 2009 Location: China
|
Member |
|
|
cbpporter wrote on Tue, 26 May 2009 11:53 | If you change the font to a font that has Chinese characters doesn’t that cause the Han characters to be rendered properly? I can see from your screenshot that you are under Linux.
|
I'm sorry,my english is very poor! I don't complete understand what you mean.When I set Lineedit to Chinese font,it can't render perfect.So I fix it.
LineEdit fix before,it like this:
[Updated on: Tue, 26 May 2009 12:07] Report message to a moderator
|
|
|
|
|
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: 14039 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 12:39:50 CEST 2024
Total time taken to generate the page: 0.03883 seconds
|
|
|