Comment 35 for bug 349914

Revision history for this message
In , Mozilla-behdad (mozilla-behdad) wrote :

(In reply to comment #29)
> (In reply to comment #28)
> > If your concern future pango versions, then I suggest adding a compile-time
> > version check on pango and setting the new methods instead of the deprecated
> > new_font() and default_substitute().
>
> We can use the new methods, but, if we do that, we need to have pre- and
> post-1.24 versions of the methods (regardless of the compile-time version), and
> do a run-time Pango version check.

Thinking about it again, you're right. If you don't need the context information anyway, just use the new_font() / default_substitute() callbacks.