JUCE 8 gradient text

Ok not to worry, I switched to use a GlyphArrangement that works and is probably the favoured method?

e.g.

void MenuBar::paint(Graphics& g) {
    glyphs.addFittedText(font, name, 0, 0, w, h, Justification::left, 2, 1.0f);
    Path p;
    glyphs.createPath(p);
    auto gradient = juce::ColourGradient::horizontal(c1, 0, c2, w);
    g.setGradientFill(gradient);
    g.fillPath(p, getTransform());
}