Re: placement of combining diacritical marks



Behdad Esfahbod wrote:
On Fri, 2008-02-22 at 08:50 +0100, Theo Veenker wrote:
Behdad Esfahbod wrote:
On Thu, 2008-02-21 at 18:56 +0100, Theo Veenker wrote:
Hi,

I just noticed that when I draw something like j+0x0301 (j with acute accent)
using pango_cairo_show_layout() it doesn't work with a 'monospace' font (works
[snip]

In short, these are all font issues.  Bug your font developers.
Aha, so this means I can get around it by selecting a font that behaves better.
Do you happen to know which monospaced font (mainly latin) is 'good'?

Not sure.  I know DejaVu Sans Monospace has this bug.  Maybe report it
to them?  Try Liberation fonts maybe?


P.S. Behdad, may I ask if there a graphic overview somewhere showing the
      relations between the the different parts of pango?
Not that I know of.  What parts do you have in mind exactly?

The canonical diagram is of course the source code :P.
Haha! That's why I ask. Having some diagrams showing how one thing is
connected to another makes ploughing through the sources a lot more
effective. I'm mainly interested in the things I as a user need to
use in my software: for instance the layout stuff. You could have
a diagram showing a PangoLayout that has N PangoLayoutLine which
in turn has N PangoGlyphItem and so on. One can easily create such
diagrams using lmu or umlgraph (haven't tried the latter one). I
can try to create a short example if you like.

I'd rather have pangocairo source code to generate those.

I think that's a bridge too far, except of course if you want to program
a pango overview diagram rather than drawing/formulating it. Anyway what
I was looking for is something like the attached dot file. To generate a ps
file from this pass it through the graphviz dot tool like this:
  dot -Tps pango.dot -o pango.ps
Of course this diagram is incomplete and possibly incorrect as I'm not the
right person to compose it. BTW dot can generate many other output formats
(for some it uses cairo so maybe you can make it generate cairo source code).

Isn't gtk-doc capable of generating such diagrams? Doxygen is.


Feel free to do that, and submit it with a patch to integrate it into
the reference docs (with some surrounding text)!

I'm sorry. If I was capable of creating any valuable documentation regarding
pango then I wouldn't be asking my silly questions on this list :-)

Regards,
Theo

Attachment: pango.dot
Description: MS-Word document



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