The confusing line in the documentation for PangoFcDecoder at http://developer.gnome.org/pango/stable/PangoFcFontMap.html#pango-fc-font-map-add-decoder-find-func
is this: "This function saves a callback method in the PangoFcFontMap that will be called whenever new fonts are created." So after I write my decoder, do I have to explicitly create a font? For example, Mozilla has a decoder at http://people.mozilla.com/~chofmann/l10n/tree/mozilla/gfx/src/gtk/mozilla-decoder.cpp Is this complete in itself or does mozilla_find_decoder get invoked only when a font is explicitly created somewhere in the code? If it needs to be explicitly created, does anyone know where in Mozilla code it gets created so that I can use it as an example? Thanks, -Ferdinand --- On Thu, 2/23/12, Ferdinand Ramirez <ramirez.ferdin...@yahoo.com> wrote: > Is it possible to use PangoFcDecoder > with GtkTextView so that I can use the glyph index to render > the glyphs? If so, at what point does the program invoke the > callback provided as a parameter in > pango_fc_font_map_add_decoder_find_func? > > The documentation says it is called during create_font and > the examples I see use GnomeCanvas. However, my program does > not use GnomeCanvas. I am not sure if GnomeCanvas is related > to GtkTextView. I am looking for the best way to render my > glyphs based on glyph index in an already existing program > that is based on GtkTextView. > > -Ferdinand > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list