Duncan Gibson wrote:
>> BTW.: did you see the new files (and README) in the misc/ directory?
>> Particularly the *-utf8.txt files are interesting for FLTK-1.3 tests.
> 
> Yes, thanks for those, they clarified a lot of the CP1252 discussion.
> I verified that Fl_Text_* handled them correctly after adding the
> fl_wcwidth() stuff by displaying them using the test/editor demo.

My test case is to open them in test/editor. I noticed that they all display 
correctly on Linux (Ubuntu), but there are a few problems on Windows:

  (1) 0x98 / U+02DC draws okay, but doesn't seem to advance the "cursor" 
correctly. Moving the real editor cursor over the character needs two key 
presses on the right arrow, the same for backwards moving, resp.. The strange 
thing with this is that notepad++ (freeware editor/sourceforge) has the same 
problem. Using cat under Cygwin (with utf-8 locale) shows everything okay.

  (2) calculation of line widths seems to be wrong. When opening the editor 
window with the default size, there are missing glyphs at the right side of all 
lines except the top and bottom ASCII-only lines. Moving the scrollbar to the 
right or resizing the window (making it wider) makes the missing glyphs appear. 
This might be an Fl_Editor issue though, and I know that you didn't look at 
this 
yet. I only wanted to mention it...

As said above, this all works okay on Linux, but I don't know about Mac.

> I've been displaying them using firefox on my Linux box at home with
> no problem, and in checking for sparkaround's \0xA4\0x00 character
> this morning, I found that firefox on CentOS at work doesn't display
> all of them properly. Guess there are some fonts missing here :-(

I just tested this with my Ubuntu/firefox, too. After setting the default 
character set to UTF-8, everything in cp1252_utf-8.txt displays okay, except 
0xAD (U+00AD), which is the "soft hyphen". I'd say that it's okay for a browser 
to hide the soft hyphen, isn't it?

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to