News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

The 16 January 2010 build (6088) is out.

Started by killerbot, January 17, 2010, 09:18:01 AM

Previous topic - Next topic

MortenMacFly

Quote from: fprijatelj on January 24, 2010, 10:27:56 AM
1. Build, or Rebuild, looses my ENVIRONMENT settings.
Enable the debugging in the envvars plugin and inspect the debug log what actually happens. I cannot reproduce.

Quote from: fprijatelj on January 24, 2010, 10:27:56 AM
2. QT4 Project has only mingw option.
   From 4.6 Nokia distributes both mingw and MSVC versions of lib.
You can enhance the wizard in any way you like. Just right-clock on it and select "edit". Feel free to add msvc support and provide a patch / updated wizard.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Loaden

Hi, Morten, can you apply of the temporary font patch?
Index: app.cpp
===================================================================
--- app.cpp (revision 6112)
+++ app.cpp (working copy)
@@ -675,6 +675,17 @@
         }
         Manager::ProcessPendingEvents();

+#ifdef __WXMSW__
+        wxString fontPath = GetAppPath() + _T("/share/CodeBlocks/fonts/*.*");
+        wxString font = wxFindFirstFile(fontPath);
+        while (!font.IsEmpty())
+        {
+            ::AddFontResource(font);
+            font = wxFindNextFile();
+        }
+        ::SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
+#endif
+
         // finally, show the app
         splash.Hide();
         SetTopWindow(frame);
@@ -733,6 +744,17 @@
     // ultimate shutdown...
     Manager::Free();

+#ifdef __WXMSW__
+        wxString fontPath = GetAppPath() + _T("/share/CodeBlocks/fonts/*.*");
+        wxString font = wxFindFirstFile(fontPath);
+        while (!font.IsEmpty())
+        {
+            ::RemoveFontResource(font);
+            font = wxFindNextFile();
+        }
+        ::SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);
+#endif
+
     // WX docs say that this function's return value is ignored,
     // but we return our value anyway. It might not be ignored at some point...
     return m_Batch ? m_BatchExitCode : 0;


[attachment deleted by admin]

MortenMacFly

Quote from: Loaden on January 24, 2010, 04:33:52 PM
Hi, Morten, can you apply of the temporary font patch?
If it's temporary, why should I apply it? :shock:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]


Loaden

Quote from: MortenMacFly on January 24, 2010, 04:41:02 PM
Quote from: Loaden on January 24, 2010, 04:33:52 PM
Hi, Morten, can you apply of the temporary font patch?
If it's temporary, why should I apply it? :shock:
Because CB can be portable, but if the target machine does not have CB set the font how to do?
For example, Dejuva the fonts in the Windows platform is not installed.

MortenMacFly

Quote from: Loaden on January 24, 2010, 04:45:08 PM
For example, Dejuva the fonts in the Windows platform is not installed.
C::B runs just fine on Windows without Dejuva, even portable. Probably I don't get what you are trying to tell, but font management is handled by wxWidgets just fine. Why do we need an own layer? Could you re-phrase the explanation please?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Biplab

Quote from: MortenMacFly on January 24, 2010, 04:48:07 PM
Quote from: Loaden on January 24, 2010, 04:45:08 PM
For example, Dejuva the fonts in the Windows platform is not installed.
C::B runs just fine on Windows without Dejuva, even portable. Probably I don't get what you are trying to tell, but font management is handled by wxWidgets just fine. Why do we need an own layer? Could you re-phrase the explanation please?

Possibly he wants to add the feature to support loading of fonts (not installed in the system) from share folder. :)
Be a part of the solution, not a part of the problem.

Loaden

#82
Quote from: Biplab on January 24, 2010, 05:01:20 PM
Quote from: MortenMacFly on January 24, 2010, 04:48:07 PM
Quote from: Loaden on January 24, 2010, 04:45:08 PM
For example, Dejuva the fonts in the Windows platform is not installed.
C::B runs just fine on Windows without Dejuva, even portable. Probably I don't get what you are trying to tell, but font management is handled by wxWidgets just fine. Why do we need an own layer? Could you re-phrase the explanation please?

Possibly he wants to add the feature to support loading of fonts (not installed in the system) from share folder. :)
Yes, this is what I want to express.

[attachment deleted by admin]

MortenMacFly

Quote from: Biplab on January 24, 2010, 05:01:20 PM
Possibly he wants to add the feature to support loading of fonts (not installed in the system) from share folder. :)
Ok. Got that point. But still: Why shall this be temporarily? I mean if it's only temporarily when shall we remove that option again, and why?! Isn't it better you (Loaden) keep in your local copy until you don't need it anymore?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Loaden

Quote from: MortenMacFly on January 24, 2010, 06:45:39 PM
Quote from: Biplab on January 24, 2010, 05:01:20 PM
Possibly he wants to add the feature to support loading of fonts (not installed in the system) from share folder. :)
Ok. Got that point. But still: Why shall this be temporarily? I mean if it's only temporarily when shall we remove that option again, and why?! Isn't it better you (Loaden) keep in your local copy until you don't need it anymore?
OK!
But this feature is still valuable, such as OpenOffice.org have the same feature.

blueshake

hi,morten:

I think what Loaden's word "temprary" is :

because he(Loaden) build an comtable version of c::b.he want to add such a festure that support loading
fonts dirctly from the relative fonts path of c::b(e.g. ..share\fonts\).

why we need to do this?

assumpt that the operation system which we used don't contain the fonts(e.g. Dejuva),so if you want to use this font,you have to copy the fonts(you want to use) to system folder.but sometime you don't have the authoration to do that.So if the c::b have the ability to  do this(loading fonts from its folder).it will be much better. :D
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Loaden

Quote from: blueshake on January 25, 2010, 02:55:13 AM
hi,morten:

I think what Loaden's word "temprary" is :

because he(Loaden) build an comtable version of c::b.he want to add such a festure that support loading
fonts dirctly from the relative fonts path of c::b(e.g. ..share\fonts\).

why we need to do this?

assumpt that the operation system which we used don't contain the fonts(e.g. Dejuva),so if you want to use this font,you have to copy the fonts(you want to use) to system folder.but sometime you don't have the authoration to do that.So if the c::b have the ability to  do this(loading fonts from its folder).it will be much better. :D
If work under limited user, that is, such a situation. :P

critic


critic

#88
And else one question: can you add setting to save IDE configuration to installation directory or user profile directory?
This is for portability of codeblocks. Sometimes I use IDE on USB stick and so on.
Now only the latter is available.

oBFusCATed

#89
Have you read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_make_Code::Blocks_portable.3F

For you feature request: have you added it as such in the project page -> feature request?
Also If you desperately need this you can make a patch and submit it for inclusion
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]