[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: Re: GtkTextView and PangoFcDecoder
From: Ferdinand Ramirez <ramirez.ferdinand () yahoo ! com>
Date: 2012-02-24 5:48:51
Message-ID: 1330062531.33553.YahooMailClassic () web122202 ! mail ! ne1 ! yahoo ! com
[Download RAW message or body]
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.ferdinand@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic