Glyph lifetime returned by layout()
If I have a font with 'static data (Font<'static>
), I can use the font.glyph('a')
function to get a glyph with the type Glyph<'static>
. But this is not possible with the layout
function, because it limits the lifetime to the font itself instead of the 'static font data.