Monodevelop font bug...

Hey, i am currentaly having a bug/probleme regarding monodevelopp font

Pretty self explanatory: ImageShack - Best place for all of your image hosting and image sharing needs

Ps: Using MAC OSX

I'm experiencing the same problem on Unity 3.5 / monodevelop-unity 2.8.2, using Lion (10.7.3). Stock Monodevelop (from monotouch) does not show such behaviour.

Same problem (Using same unity/monodevelop/OSX), did anyone ever find a solution?

Opps, I fixed it, but that is still not the problem

As I asked, what line is the error on?

I am a c# guy and don't know js well at all. In c# I know in order to use Add, you need to have either a List or an ArrayList instead of an array...

9 Answers

9

I agree with Memory Noise’s hint: the font problem is a privileges problem.

Here’s a quick instant fix that worked on two mac computers that had the same broken font (boxes) problem in Monodevelop:
Quit MonoDevelop.
From finder, open package of Monodevelop. Then navigate to Contents/Frameworks/Mono.framework/Versions/2.10.2/etc/pango
Select “pango” folder and get info. Change privileges for “everyone” to read&write.
Open MonoDevelop to verify that the fonts are fixed.

I run a computer lab with unity installed on an administrative account on the mac. The students run unity from a managed account without as many privileges, and this lets Monodevelop run for them with readable fonts.

(Both test computers are running Mac os 10.8.5; using MonoDevelop 2.8.2 from unity 4.2.1f4, latest unity as of 2013 oct 3)

YES! This worked! although i set permissions to my user account , not "everybody"

It disappeared in a following update, after changing permissions for the whole monodevelop application from “root:root” (user:group) to the name of the user i login with and its relative group. I’ve used BatChmod to change the permissions.

A following update from Unity, or a following update to OSX? I can't seem to get this to work, I've set Owner: to my account and Group: to staff (I think that's the default group for users anyway). I've also tried a whole bunch of other groups.

Unity Update, of course.
That’s weird by the way, have you tried deleting the Monodevelop preferences from Application Support Folder?

In BatChmod I’ve set my user as the owner, “admin” as the group.

Ticked all the RWX boxes (this way it should be fixed for all the users) , selected “Change ownership and privileges”, and checked the “Apply to enclosed folders and files” box (it should work recursively on the whole app package)

This works fine for me.

None of that worked unfortunately. The preferences I deleted were inside ~/Library/Preferences/MonoDevelop-Unity-2.8

I experienced the same problem and setting the permissions did not help. When I examined the console log for monodevelop I noticed the following:

ERROR [2013-06-12 20:21:13Z]: Pango-Critical: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '/Library/Frameworks/Mono.framework/Versions/2.10.11/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/Library/Frameworks/Mono.framework/Versions/2.10.11/etc/pango/pango.modules'
Stack trace: 
   at GLib.Object.gtksharp_object_newv(IntPtr , Int32 , System.IntPtr[] , GLib.Value[] )
   ...

When I looked at the directory:
/Applications/Unity/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/2.10.11/etc/

I noticed there were two files:
pango.modules
pango.module.orig

After removing the pango.modules and replacing it with the pang.modules.orig my fonts were appearing as before.

I experienced this same problem when I first downloaded Unity. As mroam said, it has to do with the account abilities. Try looking at the setup under sharing. Or just try to use the master admin account with monodevelop first.

I had no luck with changing permissions on the Unity or mono folders. I had to launch terminal and do:

sudo /Applications/Unity/MonoDevelop.app/Contents/MacOS/monodevelop 

This allowed me to run mono with the font displaying correctly, which does point to it being a permissions problem. However, subsuequently running /Applications/Unity/MonoDevelop.app/Contents/MacOS/monodevelop (without sudo) game me a slew of errors in the ternimal all relating to a pango folder in the /var directory.

rm: /var/folders/mq/5_mpf8kx20n3k4w6xywmt2sm0000gn/T//lib/pango/1.6.0/modules/pango-basic-atsui.so: Permission denied
rm: /var/folders/mq/5_mpf8kx20n3k4w6xywmt2sm0000gn/T//lib/pango/1.6.0/modules/pango-basic-fc.la: Permission denied
rm: /var/folders/mq/5_mpf8kx20n3k4w6xywmt2sm0000gn/T//lib/pango/1.6.0/modules/pango-basic-fc.so: Permission denied
rm: /var/folders/mq/5_mpf8kx20n3k4w6xywmt2sm0000gn/T//lib/pango/1.6.0/modules/pango-basic-x.la: Permission denied
rm: /var/folders/mq/5_mpf8kx20n3k4w6xywmt2sm0000gn/T//lib/pango/1.6.0/modules/pango-basic-x.so: Permission denied
rm: /var/folders/mq/5_mpf8kx20n3k4w6xywmt2sm0000gn/T//lib/pango/1.6.0/modules/pango-hangul-fc.la: Permission denied

I navigated to the /lib folder and moved pango to the trash. Subsequently launched mono and was good to go.

We had this issue in our lab and found a workaround. Copy MonoDevelop to the desktop and execute it. It will come up with fonts. After that, you can delete the version on the desktop and run it as usual from Unity. Not much of an explanation but it works.

Just run the following commands with root

chown -R root:wheel /Users/Shared/Unity
chmod -R 777 /Users/Shared/Unity/
chown -R root:wheel /Applications/Unity
chmod -R 777 /Applications/Unity

This one worked for me:

Copy the MonoDevelop.app from Application folder and paste it somewhere else (I used Desktop folder) and launch from that monodevelop instead of using the default one. This will resolve privileges problem.