Opened 12 years ago

Closed 5 years ago

#285 closed defect (wontfix)

Characterset Problems

Reported by: Silvan Scherrer Owned by:
Priority: major Milestone: Qt Enhanced
Component: General Version: 4.7.3
Severity: low Keywords:
Cc:

Description

Following up to the above... the WPSU header reports support for the specific Greek codepages 1253 and 869. That is actually correct, because it /does/ support all the Greek characters in those codepages.

Something in QT4 (possibly Pango?) is somehow drawing the conclusion that WPSU supports the entire Greek Unicode block, which is wrong. Whether it's basing that conclusion on the fact that those two codepages are supported, or because it checks the font for some particular character (or range of characters), I don't know.

see also http://svn.netlabs.org/lucide/ticket/141 comment:7 and later

Change History (6)

comment:1 by Silvan Scherrer, 11 years ago

i think this has to do with r227. Probably this hack needs a adjustment

comment:2 by Alex Taylor, 11 years ago

I've run into a more serious problem. Japanese text is completely undisplayable because QT4 apparently assumes that Workplace Sans supports it (it doesn't).

I'm guessing this is also related to changeset 227.

// Note that "Workplace Sans" TTF by Alex Taylor doesn't provide correct 
// unicode and codepage ranges in os2_table for some reason but versions 
// 0.4 and earlier are known to support many popular scripts so hack it. 

Um... do you care to elaborate on this? The values SHOULD be correct -- I'm pretty confident the codepage ranges are correct, and I just double-checked the Unicode fields and they certainly are.

Last edited 11 years ago by Alex Taylor (previous) (diff)

comment:3 by Dmitry A. Kuminov, 10 years ago

Yes, this comment is from r227. I remember adding this hack because I found what it says in the commit message:

gui: Added a hack for "Workplace Sans" to make Qt think it supports all scripts
(Unicode and codepage ranges in the header indicate that it only supports
Latin1 but it's much less than the actual number of scripts which include Greek,
Cyrillic and even Japanese, which are supported at least partially).

I don't remember though how exactly I found this. But judging rom the message it would not even display Cyrillic (which is surely there). This needs to be rechecked indeed.

Last edited 10 years ago by Dmitry A. Kuminov (previous) (diff)

comment:4 by Alex Taylor, 10 years ago

Was somebody testing against the incomplete WPSU version 0.5 maybe? That was more of a 'proof of concept' release to test some design changes, and may indeed have only supported Latin-1.

Since version 0.8 at least, Workplace Sans supports Latin-1, the Baltic range of Latin-2 and a few others (about half of Latin-2 in total), Cyrillic, Greek, various glyphs in the U+20xx - U+26xx range, and a handful of ligatures. It does not (yet?) support Hebrew or Hangul, nor Arabic, and will probably never support Japanese to any usable degree.

Last edited 10 years ago by Alex Taylor (previous) (diff)

comment:5 by Dmitry A. Kuminov, 10 years ago

Yes, this is possible. This is among the first things I will check when I switch back to Qt (I hope really soon). Thank you for your feedback, Alex.

comment:6 by Silvan Scherrer, 5 years ago

Resolution: wontfix
Status: newclosed

this needs to be checked in Qt5. Please open a ticket at https://github.com/bitwiseworks/qtbase-os2

Note: See TracTickets for help on using tickets.