List Info

Thread: pango_layout_xy_to_index




pango_layout_xy_to_index
country flaguser name
Netherlands
2007-10-12 04:27:47
Don't know if this is the right place to ask, but I'll try
anyway.

I'm porting an editor and started using Pango. I'm impressed
by the clean
interface and the functionality.

However, I think I found a bug. It looks like
pango_layout_xy_to_index
does not use the tab stops I set with pango_layout_set_tabs.
It simply
ignores my tabstop settings and returns incorrect offsets.

Is this a known bug?

-maarten



_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Re: pango_layout_xy_to_index
user name
2007-10-13 17:06:00
On Fri, 2007-10-12 at 11:27 +0200, Maarten L. Hekkelman
wrote:
> Don't know if this is the right place to ask, but I'll
try anyway.
> 
> I'm porting an editor and started using Pango. I'm
impressed by the clean
> interface and the functionality.

Glad you like it.

> However, I think I found a bug. It looks like
pango_layout_xy_to_index
> does not use the tab stops I set with
pango_layout_set_tabs. It simply
> ignores my tabstop settings and returns incorrect
offsets.
> 
> Is this a known bug?

No.  Not as far as I know.  Can you attach a minimal test
case exposing
the problem?

> -maarten

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase
a little
 Temporary Safety, deserve neither Liberty nor
Safety."
        -- Benjamin Franklin, 1759



_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Re: pango_layout_xy_to_index
country flaguser name
Netherlands
2007-10-15 02:26:56
Op 14-okt-2007, om 0:06 heeft Behdad Esfahbod het volgende
geschreven:
>>
>> However, I think I found a bug. It looks like  
>> pango_layout_xy_to_index
>> does not use the tab stops I set with
pango_layout_set_tabs. It  
>> simply
>> ignores my tabstop settings and returns incorrect
offsets.
>>
>> Is this a known bug?
>
> No.  Not as far as I know.  Can you attach a minimal
test case  
> exposing
> the problem?

Aaargh... the bug was mine. My apologies. For measuring
postion to  
index I used an offscreen graphic device but with a width
smaller  
than my on screen area. This meant the tabstops were not set
up  
properly and Pango apparently falls back to 8 spaces per tab
when tab  
stops are exhausted.

Which leads to a feature request: wouldn't it be nice to
have a  
'pango_tab_array_set_default_tab_width' where you can set
this default?

mvg,

Maarten L. Hekkelman
maartenhekkelman.com
06 26 750 799

_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Re: pango_layout_xy_to_index
country flaguser name
United States
2007-10-15 12:43:25
On Mon, 2007-10-15 at 09:26 +0200, Maarten L. Hekkelman
wrote:

> This meant the tabstops were not set up  
> properly and Pango apparently falls back to 8 spaces
per tab when tab  
> stops are exhausted.

No, it repeats the difference between your last two stops.


> Which leads to a feature request: wouldn't it be nice
to have a  
> 'pango_tab_array_set_default_tab_width' where you can
set this default?

Just add one final stop that dictates the repeated pattern
after it.

> mvg,
> 
> Maarten L. Hekkelman
> maartenhekkelman.com
> 06 26 750 799
> 
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase
a little
 Temporary Safety, deserve neither Liberty nor
Safety."
        -- Benjamin Franklin, 1759



_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )