David Pfeffer
David Pfeffer

Reputation: 39823

Mono application has garbled text on Linux

I have a Mono application with a plain-old Windows Forms form that has a single Label control in the center. On Windows, both in Mono and in Microsoft.Net, the application looks fine:

Screenshot on Windows

However, on Linux, the text is garbled:

Screenshot on Linux

I'm not sure what could be causing this issue, so any help would be appreciated. The font is Verdana, and I've checked the X11 font directories to ensure Verdana.ttf is in there.

Edit: I just became aware of the following error on standard error: Pango Error

Upvotes: 0

Views: 732

Answers (2)

David Pfeffer
David Pfeffer

Reputation: 39823

The answer was in stderr! I needed to generate that pango modules file.

Upvotes: 0

jstedfast
jstedfast

Reputation: 38528

The square glyphs suggest that the proper glyphs aren't being found in the font.

Make sure that your Verdana.ttf is 1) complete and 2) not corrupted.

Upvotes: 1

Related Questions