Author Topic: Font problem in Windows  (Read 10531 times)

kpuchatek

  • Guest
Font problem in Windows
« on: February 23, 2006, 05:01:33 pm »
Hi,

I just downloded CBlocks and looks great  :P But I think it has nasty problem with large fonts
on MS Windows. Maybe somebody could confirm that. It is typical problem of open-source or
shareware software. You go to Contronal Panel and change fonts to Large.
Then dialogs are not displayed correctly - windows are not resized properly.
Is any solution to that for CBlocks ?

Michal

takeshimiya

  • Guest
Re: Font problem in Windows
« Reply #1 on: February 23, 2006, 05:11:22 pm »
I didn't found any problem at first-try.

Can you post an screenshot?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Font problem in Windows
« Reply #2 on: February 23, 2006, 05:49:44 pm »
Do you mean this?


"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

sethjackson

  • Guest
Re: Font problem in Windows
« Reply #3 on: February 23, 2006, 05:50:49 pm »
 :shock: Pretty nasty.  :P

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Font problem in Windows
« Reply #4 on: February 23, 2006, 09:58:41 pm »
It is typical problem of open-source or
shareware software.

Thats because those authors were lazy when they wrote there dialogs and most likely used an absolute position for the widgets.  So if the widgets change size everything goes crazy.  Since CB is cross platform and it can't depened on absolute sizes for widgets everything is layed out with sizers, which automatcially adjust windows based on the widgets they contain and how much space each one needs.

Note:  I have seen plenty of VB dialogs layed out using absolute position.  If this were a problem with CB we would of already seen it because people run on windows and linux which have significantly different sizes for some widgets and definelty fonts.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Font problem in Windows
« Reply #5 on: February 23, 2006, 10:04:14 pm »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

takeshimiya

  • Guest
Re: Font problem in Windows
« Reply #6 on: February 23, 2006, 11:51:58 pm »
The good rule of the thumb is that given any dialog, when maximized, it haves to look ok.

kpuchatek

  • Guest
Re: Font problem in Windows
« Reply #7 on: February 24, 2006, 03:51:03 pm »
I meant for instance this:


[attachment deleted by admin]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Font problem in Windows
« Reply #8 on: February 24, 2006, 04:06:41 pm »
I meant for instance this:
Thomas: Allthough I'm sure you know by now, but just in case: I think he means a 120dpi font and not the "Schriftgrad" in the "Darstellungsoptionen"... ;-)
With regards, Morten.
Ps.: Anyone knows the english description for this?!

[attachment deleted by admin]
« Last Edit: February 24, 2006, 04:09:35 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Font problem in Windows
« Reply #9 on: February 24, 2006, 10:31:12 pm »
Thomas: Allthough I'm sure you know by now, but just in case: I think he means a 120dpi font and not the "Schriftgrad" in the "Darstellungsoptionen"... ;-)
No, I did not know, I tried the wrong thing (did not even know about the other :lol:).

Very well, tried that, and although Windows messed around for a while (missing files, had to insert the DVD, and then it switched settings and told me the system needed to be restarted to switch settings...), I got it to work.

@kpuchatek:
Current HEAD does not seem to have this problem. The dialogs use 96dpi fonts either way. I don't know the reason for this, might be a wxWidgets thing. I'll be back in 2 minutes, will try after reboot.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Font problem in Windows
« Reply #10 on: February 24, 2006, 10:37:44 pm »
Yep, looks fine :)

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: Font problem in Windows
« Reply #11 on: February 25, 2006, 06:12:26 am »
I've seen not properly aliened text and controls in the linux version.

I think that modern programs should not feature fixed sized dialogs, etc. Modern programs should be more like a good web page.

Other problems that occur not only in open source programs but in commercial is that when translating a program into another language: sometimes the text doesn't fit at all.

original
-> Properties
but
-> Einstellungen
-> Настройки

original
-> Dialog window
-> Dialogfenster
but
-> Диалогов прозорец

Some languages are more descriptive than other and need longer or more words to describe something than English.



Also in my oppinion when properly designed tab based iterfaces look better than dialog ones and are more natural. For examples the Settings in CB are "tab based". But I believe most of a program could be designed like that. One big window and tabs inside (MDI). Why is it better than Dialogs - because most of the time, when you pop-up a dialog, you can't use the main program anyway. Pop-ups, message boxes, dialogs, etc. should be reserved for the most important stuff only and some designers used/abuse them for anything.

takeshimiya

  • Guest
Re: Font problem in Windows
« Reply #12 on: February 25, 2006, 09:55:30 pm »
Thomas, it's just me, or in that screenshot, the Make program: mingw32-make.exe is completely eaten? :D

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Font problem in Windows
« Reply #13 on: February 25, 2006, 10:09:16 pm »
Thomas, it's just me, or in that screenshot, the Make program: mingw32-make.exe is completely eaten?
You're right! :lol: :lol: :lol:
So Thomas is affected by the "120dpi virus" then. But because he has a different screen resolution it rips off widgets in a way you wouldn't even recognise... ;-)
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Font problem in Windows
« Reply #14 on: February 25, 2006, 10:41:38 pm »
Hmm strange... but yes, it's missing, I did not see it at all.
Actually the dialog should automatically resize to fit all....
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

  • Guest
Re: Font problem in Windows
« Reply #15 on: February 25, 2006, 10:47:32 pm »
So Thomas is affected by the "120dpi virus" then.
Actually it happens on my linux with the "default" dpi also.
Not a big problem that can't be solved changing the XRC a bit.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: Font problem in Windows
« Reply #16 on: February 26, 2006, 12:24:56 am »
On a high resolution screen, I run at 150 dpi because my
eyes are over "49" years old. I get the following effects:


[attachment deleted by admin]

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Font problem in Windows
« Reply #17 on: February 26, 2006, 12:29:40 am »
Those are wxWidgets problems which we probably won't be able to address :(
At least, I can't imagine how we could...

The compiler dialog has been fixed. There remains a small glitch in the editor dialog, but that one is not so severe.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."