[Mono-osx] 2.10.9 problem: How to avoid Fonts.conf calls?
Alain
alain at slide-effect.com
Fri Mar 30 08:02:27 UTC 2012
Hi there,
I am bundling my application to make it work on machines without Mono
installed.
It worked previously but now, using Mono 2.10.8 or 2.10.9, mono framework
always tries to read the file:
/Library/Frameworks/Mono.framework/Versions/2.10.9/etc/fonts/fonts.conf
I tried with a basic monomac application made with the wizard in which I add
the following call in MainWindow.cs Initialize function:
System.Drawing.Color c = System.Drawing.Color.Black;
If the fonts.conf file is not on the system, execution stops with the
console message:
Fontconfig error: Cannot load default config file
If I replace this call by:
System.Drawing.Color c = System.Drawing.Color.FromArg(0,0,0);
It works, but I have plenty of calls to predefined colors in my code, and I
don't understand this regression.
So, questions are:
- why mono try to read this file when doing completely unrelated things?
- if this file is really needed, is there a way to put it on the application
bundle (ie: /Applications/MyApp/...) and tell mono to look to this bundled
fonts.conf instead of the one in /Library/Framework/...
Thanks for your help.
--
View this message in context: http://mono.1490590.n4.nabble.com/2-10-9-problem-How-to-avoid-Fonts-conf-calls-tp4518347p4518347.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx
mailing list