Mono renders non-latin characters as squares. Fonts substitution error.

Bug #673997 reported by cablop
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Banshee
New
Undecided
Unassigned
mono
New
Undecided
Unassigned
mono (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: mono

When an application is being run we expect to be able to see the non-latin characters like CJK ones.
What happens is they're being shown as empty boxes|squares.

My Ubuntu version is Maverick and i'm using the default mono and winforms packages:
- libmono2.0-cil 2.6.7-3ubuntu1
- libmono-winforms2.0-cil 2.6.7-3ubuntu1

Afaik the problem is related to WinForms or to Ubuntu itself.
Someone addressed this as an issue in thaifonts-scalable package. But as long as i'm not using that package and that issue is fixed for maverick, this is not the same bug. File /etc/fonts/conf.avail/89-ttf-thai-tlwg-synthetic.conf is not even present.

How to reproduce the issue. Lanch a mono application, like KeePass2 and type in the search box a CJK text or paste one like 我 (for chinese) or 私、わたし (for japanese). They're instantly shown as empty boxes.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: mono-runtime 2.6.7-3ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
NonfreeKernelModules: wl
Architecture: i386
Date: Thu Nov 11 12:35:15 2010
ExecutablePath: /usr/bin/mono
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427.1)
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.utf8
SourcePackage: mono

Revision history for this message
cablop (cablop) wrote :
Revision history for this message
cablop (cablop) wrote :

I've tried to use this command

> export LANG=ja
> mono KeePass.exe

then i get the following message

Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.

cause i know the KeePass.exe support those characters, i was running it on Windows (either real or virtualized) and characters are being shown correctly. I think it is an issue in the mono libraries for Ubuntu.

some people reported there's no such issue in OpenSuSE, maybe cause other linux suse c++ rather than pure c...

is maybe this problem caused by some pure c libraries or the mono libraries in Ubuntu?

cablop (cablop)
summary: - Non latin fonts displayed in applications. Fonts substitution error.
+ Mono renders non-latin characters as squares. Fonts substitution error.
Revision history for this message
Frederic the wise (fredericthewise) wrote :

this still effects me with banshee in Ubuntu. 11.04. Will this ever work?

Revision history for this message
Du Yanning (duyanning) wrote :

KeePass on openSUSE 12.1 also suffers this problem.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mono (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.