drawText ellipsis flag not working

Hello, i am building the GraphicsTurorial
(https://juce.com/doc/tutorial_graphics_class) and when i tried using the drawText(x, y, height, width, ellipsis flag) figured out that when i put false in ellipsis flag, it does not work. three dots still appear.

void MainComponent::paint (Graphics& g)
     g.fillAll (Colours::lightblue);
     g.setColour (Colours::darkblue);

//Set Fonts
Font mainComponentFont("Times New Roman", 20.0f, Font::italic);
g.setFont(mainComponentFont);

g.drawText("Hellow, World", 20, 40, 50, 40, false);}

what i see when running the app is: temp

does anyone have come across such a bug?

Looks like user error. The API you are calling takes 7 parameters, with the 7th being the ellipse flag. You are inadvertently passing in ‘false’ for the Justification param.

void drawText (const String &text, int x, int y, int width, int height, Justification justificationType, bool useEllipsesIfTooBig=true)

You are right! thank you
so it seem that tutorial has a mistake because i copy/pasted it

or the API changed since the tutorial was written.

Will make sure the tutorial gets updated, thanks for spotting that!

thank you for the tutorials!

You should thank @martinrobinson-2 for these amazing tutorials!

Ironically, I’m pretty sure @timur wrote that particular one!