Advancing my Understanding of Pango for my project...



Hello,

I'm a lisp developer and I'm making a simple text editor in opengl for my project: Qix. (open-sourced on Gihub)  I have made some Pango-Cairo bindings, but I have a few questions about using it.

First, is there a simple wrapper around Pango for making a text editor/word processor? I need to write to raw memory for Opengl to use the buffer so that is a criteria.

If there isn't a wrapper I can use, is there an example or template text editor/word processor I can learn from?

I'm not sure the best way to implement cursors, right now I am using a line that I draw with Cairo, but what is a pleasing width for different font sizes? I was using highlighted characters (with pango attributes) but the cursor disappears after the last word on the line when wordwrap is enabled.

How do you create larger documents? Do you use multiple layout objects? If so, how do you handle cursor movements between layout objects? Should I keep a copy of each layout in the document or should I just use one as I render the page?

If I want to do pages, how do you normally handle page breaking, formatting around pictures, etc.

Thank you. I know that my project might sound weird, but I promise it has potential and I really want to use pango for future users. Any help is greatly appreciated and I have links to my project if you have any questions about what I am doing.

Sincerely,

Brad Beer (WarWeasle)
BradWBeer gmail com

http://lispgames.ath.cx/index.php/User:WarWeasle
http://wiki.github.com/BradWBeer/Qix/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]