Re: TeX-like H&J demo
- From: Damon Chaplin <damon karuna uklinux net>
- To: Noah Levitt <nlevitt columbia edu>
- Cc: gtk-i18n-list gnome org
- Subject: Re: TeX-like H&J demo
- Date: 27 Apr 2003 15:27:44 +0100
On Sun, 2003-04-27 at 04:07, Noah Levitt wrote:
> So you know that someone has looked at it. :)
>
> I like it. Any chance we can at least get some ultra-simple
> justification in pango 1.4?
I think it would be fairly easy to stretch the spaces in the existing
layout code, so you'd get simple justification, without hyphenation
or support for kashidas.
I could have a go at this if people want it.
> I'm sure you know this, but I noticed that it seems to
> calculate the width of something incorrectly for Arabic (or
> maybe for anything other than Latin).
Yes, I think it is a bug in pango_glyph_string_get_logical_widths().
I could be wrong though.
As I understand it, the sum of the log_widths (of all the chars) should
equal the sum of the PangoGlyphString geometry widths (of all the
glyphs) for an item. But that isn't happening:
Item logical widths: 9216 4608 4608 Total: 18432
Item glyph widths : 9216 9216 9216 Total: 27648
Item logical widths: 9216 9216 4608 4608 Total: 27648
Item glyph widths : 9216 9216 9216 9216 Total: 36864
My code uses the logical widths a lot more than PangoLayout does, which
is why the problem is more noticeable.
There's also a bug in my unicode stuff that is causing crashes in the
RTL demo page. I'm looking into that now.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]