#1120: UTF8-Bytestring Pango interface.
-----------------------------+----------------------------------------------
Reporter: guest | Owner: axel
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Pango bindings | Version: 0.9.12
Resolution: | Keywords:
-----------------------------+----------------------------------------------
Changes (by guest):
* type: defect => enhancement
Comment:
A reason for using utf8 internally is that I checked gtk documentation,
and it said it returned utf8 offsets. I did not imagine you'd adapt it in
gtk2hs. :) It turns out the Yi code in not (much) more complex anyway:
position in buffer is used abstractly almost everywhere.
Also, since we used bytestrings for performance reasons anyway, it was
rather natural to encode unicode as UTF8 in it. An obvious additional
benefit is saved memory in the usual ascii case.
I was guessing this is a common use-case, maybe I'm wrong.
Also, using PangoLayout is quite CPU-intensive. I can't tell the share of
the haskell layer though.
If I end up implementing this, would you accept patches?
--
Ticket URL: <http://hackage.haskell.org/trac/gtk2hs/ticket/1120#comment:2>
Gtk2Hs <http://haskell.org/gtk2hs/>
The Gtk2Hs project
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gtk2hs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel