Georg Baum wrote:
Abdelrazak Younes wrote:

By the way, around section 6.2 of the UserGuide there are some accent
characters which are bigger than 65536.

Which ones? I suspect that something is going wrong there.

I'll investigate.


Shall I add an assertion for those cases?

Yes.

But then it would crash... One solution is to detect them (via an
"if val>65536") and put an asterisk mask for that character.
In the case of ascent(), descent() and width(), we can return the size of this empty characters.

Then you make it clear that the qt4 frontend can only handle ucs2. That
is better than silently doing nonsense, although it is of course ridiculous
that we jump through all these hoops to support ucs4 in the core and then
it is not possible to use that.

OK, I'll do that.



Georg


PS: magic numbers are evil

If these are magic codes for some accent unknown characters when I guess I should simply ignore them not assert on them. Am I missing something?

Abdel.

Reply via email to