Bug 61538
| Summary: | gedit does not like unicode fonts | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Bill Nottingham <notting> |
| Component: | gedit | Assignee: | Havoc Pennington <hp> |
| Status: | CLOSED DEFERRED | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.3 | CC: | otaylor, rvokal |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2002-03-21 15:40:11 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Bill Nottingham
2002-03-21 07:07:38 UTC
Owen may correct me, but I believe this is expected with GTK 1.2. Huh? Why whould switching the font charset from iso8859-1 to iso10646-1 change text that is *only* in iso8859-1 characters to boxes? Well, that's the way it is.... you have to have a font that matches the encoding of the locale. Some things can just truncate an iso-10646-1 font and get a iso-8859-1 font by luck, GTK+ doesn't support that. (Without looking at the gedit source code, I don't know the full details, but it appears that it is using gdk_font_load() rather than gdk_fontset_load(), since otherwise it would be replacing the iso10646-1 with iso8859-1 and probably get a useable font.) This bug was in all of 7.x, gnome-terminal has the same issue, I don't think it's something we want to fool with for hampton. Switching to fontset might break other stuff. I'm still bafffled. gnome-terminal works *perfectly* with iso10646 fonts. It works if you have "enable multibyte support" but not if you don't. which is essentially gdk_font_load() vs. gdk_fontset_load() Oops, it's the other way around, it works if you _don't_ enable multibyte support. But we enable it by default. But that's inconsistent with what Owen said since multibyte support means fontsets. Owen says the unknown chars are caused by gdk_font_load() in combination with gdk_draw_string() which expects the string to be in a 16-bit encoding. gnome-terminal uses gdk_draw_char() or XDrawString() or something so doesn't have this issue with gdk_font_load(). |