Smart underline Glyphs

Is there a chance to implement smart glyphs when underlined? For example when “eager” is underlined, the g should not be underlined in full.

Adam Schwartz demonstrates his way of smarter Link underlines for websites. Is this possible in Glyphs?

You could make a stylistic set that has the underline build in. But that only works in browsers with OpenType support (soon Webkit will have it too).