Shadow around the text

Hi everyone,
Is it possible to add a shadow around the text?
I’ve tried several ways but I haven’t been able to figure out the solution.

Draw the text to an image, then use juce::DropShadow::drawForImage() like so:

juce::Image image {juce::Image::ARGB, 300, 200, true};
juce::Graphics g {image};
g.drawText ("Hello, World!", image.getBounds(), juce::Justification::centred);

const juce::DropShadow shadow {juce::Colours::black, 10, {0, 0}};
shadow.drawForImage (mainGraphicsContext, image);

mainGraphicsContext.drawImage (image, bounds);