Launchpad has imported 10 comments from the remote bug at https://bugzilla.novell.com/show_bug.cgi?id=569011.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2010-01-08T00:07:08+00:00 Novell-paul wrote: Created an attachment (id=335482) i18n minimal test case User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091215 Ubuntu/10.04 (lucid) Firefox/3.5.6 Forwarded from http://launchpad.net/bugs/503759 All Unicode/non-ASCII text glyphs (accented Latin characters, mathematical symbols, CJK characters) are rendered by as squares. The machine in question has sufficient fonts, but for Winforms-based applications these non-Latin characters are not being displayed. Examples of characters affected: "çêñ / ▸ / ¹ / 中文 / 日本語 / 한국어". This happens with Libgdiplus 2.4.2; the previous Libgdiplus 2.0 (shipped in Ubuntu 09.04) was fine; the issue could equally be in Pango/Cairo/Fontconfig---but only shows up in the case of Mono software. Note that this is occuring with the _default_ font; the .Font has not been overwritten. Reproducible: Always Steps to Reproduce: Attached minimal test case and screenshot demonstrate this. Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/0 ------------------------------------------------------------------------ On 2010-01-08T00:10:24+00:00 Novell-paul wrote: Created an attachment (id=335483) Screenshot with Unicode glyphs replaced by square boxes Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/1 ------------------------------------------------------------------------ On 2010-01-08T01:40:28+00:00 Novell-paul wrote: Created an attachment (id=335487) Test case using g.DrawString() directly Per spouliot's request. This shows that CJK fails on the default font, and that non-ASCII fails with eg. Font("MS Sans Serif"). Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/2 ------------------------------------------------------------------------ On 2010-01-08T01:41:36+00:00 Novell-paul wrote: Created an attachment (id=335488) Default Font("") on top three lines; Font("MS Sans Serif") on bottom three lines Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/3 ------------------------------------------------------------------------ On 2010-01-08T01:52:54+00:00 Spouliot-novell wrote: Ok, if I got this right then I should be able to duplicate this with 2.4 (and 2.6 and HEAD) and get something different when I rebuild mono/mcs/libgdiplus 2.0, right ? I'm updating my 2-0 branch right now and will try this tomorrow morning. Then I'll compare the results with 2.4.2.3 (default on my openSuSE 11.2 laptop), the Mono/mcs 2.6 (that I keep for moonlight development) and HEAD. I'll attach the pictures when done. Thanks for the test case! Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/4 ------------------------------------------------------------------------ On 2010-01-08T13:53:01+00:00 Spouliot-novell wrote: Created an attachment (id=335582) opensuse 11.2 (x86_64) using mono/libgdiplus 2.0.1 I made two change to your sample. First the background is white (instead of transparent, since it's easier with eog) and I also added a version string in the filename (to avoid mistakes between executions). [mono] ~/src/bugzilla @ gmcs 569011.cs -pkg:dotnet [mono] ~/src/bugzilla @ mono --version Mono JIT compiler version 2.0.1 (/branches/mono-2-0/mono r149209) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none [mono] ~/src/bugzilla @ mono 569011.exe 2.0.1 [mono] ~/src/bugzilla @ ego 569011-mono-2.0.1.png >From strace I made sure I was loading the 2.0.1 libgdiplus (not my distro one) open("/opt/mono/lib/libgdiplus.so", O_RDONLY) = 3 Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/5 ------------------------------------------------------------------------ On 2010-01-08T13:55:34+00:00 Spouliot-novell wrote: Created an attachment (id=335583) opensuse 11.2 (x86_64) using mono/libgdiplus 2.4.2.3 (distro) Next I tried the mono version installed by my distro. pou...@mizar:~/src/bugzilla> mono --version Mono JIT compiler version 2.4.2.3 (tarball Sat Oct 24 05:46:54 UTC 2009) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none pou...@mizar:~/src/bugzilla> mono 569011.exe 2.4.2.3 Using strace I made sure that I used my distro libgdiplus (2.4.2.3) open("/usr/lib64/libgdiplus.so", O_RDONLY) = 3 Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/6 ------------------------------------------------------------------------ On 2010-01-08T13:59:26+00:00 Spouliot-novell wrote: As far as I can tell the two bitmaps are identical. This match the fact that there was very few changes in libgdiplus between both releases. In any case the behavior you described (font substitution) is not implemented in libgdiplus - any such occurrence would come from outside. As you get different results I suspect they are due to system changes (e.g. different versions of fontconfig, cairo....) or configuration changes (e.g. installed fonts). Good luck in finding the culprit! Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/7 ------------------------------------------------------------------------ On 2010-01-08T15:02:16+00:00 Novell-paul wrote: Okay, thanks for that. So it's a change in the dependency chain that is also getting changed, but still something that (eg. use of a particular flag) that is only showing up via Mono. At least it's documented and Googlable now. Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/8 ------------------------------------------------------------------------ On 2010-09-11T13:35:11+00:00 Novell-paul wrote: This has eventually been traced back to a specific font package (providing Thai fonts) having a slightly too-broad match in: /etc/fonts/conf.avail/89-ttf-thai-tlwg-synthetic.conf and thus catching /all/ explicit requests for "MS Sans Serif" and "Microsoft Sans Serif" ...which is what WinForms specifically requests. Thus the explicit "grabbing" of the pseudo generic font family name causes everything to be sourced from that font, which has no coverage other than for basic (non-accented Latin) and for Thai. Reply at: https://bugs.launchpad.net/mono/+bug/539008/comments/19 ** Changed in: mono Status: Unknown => Invalid ** Changed in: mono Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/539008 Title: Microsoft Sans Serif maps to Thai font even on european setups -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
