Since I'm working with Paul on the glyph changes to the R graphics engine I'm
quite interested in this so I had the idea to take out the guts from my Cairo
package into a self-contained C code. Your request is good to bump is up on my
stack. I already have code that draws text into OpenGL textur
I'm somewhat aware of how tricky it all is. For now I'm going to do it
in R (usng textshaping for layout and base graphics on the
ragg::agg_capture device to draw to the bitmap). I'll avoid allowing
changes to happen in the C++ code.
Eventually I'll see if I can translate the code into C++.
Duncan,
drawing text is one of the most complicated things you can do, so it really
depends how for you want to go. You can do it badly with a simple cairo
show_text API. The steps involved in doing it properly are detecting the
direction of the language, finding fonts, finding glyphs (resolvin