Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mirek is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wrong alignment in 'select main package' window
Next Topic: big problems with autobuild 1240
Goto Forum:
  


Current Time: Sat Aug 09 17:51:38 CEST 2025

Total time taken to generate the page: 0.02423 seconds