Browse Source

Removed Graphics::drawTextAsPath, which is obsolete, since the same job can be done using Graphics::addTransform and any of the other drawText methods.

tags/2021-05-28
jules 12 years ago
parent
commit
49fd486c23
2 changed files with 1 additions and 22 deletions
  1. +0
    -10
      modules/juce_graphics/contexts/juce_GraphicsContext.cpp
  2. +1
    -12
      modules/juce_graphics/contexts/juce_GraphicsContext.h

+ 0
- 10
modules/juce_graphics/contexts/juce_GraphicsContext.cpp View File

@@ -251,16 +251,6 @@ void Graphics::drawSingleLineText (const String& text, const int startX, const i
}
}
void Graphics::drawTextAsPath (const String& text, const AffineTransform& transform) const
{
if (text.isNotEmpty())
{
GlyphArrangement arr;
arr.addLineOfText (context.getFont(), text, 0.0f, 0.0f);
arr.draw (*this, transform);
}
}
void Graphics::drawMultiLineText (const String& text, const int startX,
const int baselineY, const int maximumLineWidth) const
{


+ 1
- 12
modules/juce_graphics/contexts/juce_GraphicsContext.h View File

@@ -116,7 +116,7 @@ public:
Note there's also a setFont (float, int) method to quickly change the size and
style of the current font.
@see drawSingleLineText, drawMultiLineText, drawTextAsPath, drawText, drawFittedText
@see drawSingleLineText, drawMultiLineText, drawText, drawFittedText
*/
void setFont (const Font& newFont);
@@ -158,17 +158,6 @@ public:
int startX, int baselineY,
int maximumLineWidth) const;
/** Renders a string of text as a vector path.
This allows a string to be transformed with an arbitrary AffineTransform and
rendered using the current colour/brush. It's much slower than the normal text methods
but more accurate.
@see setFont
*/
void drawTextAsPath (const String& text,
const AffineTransform& transform) const;
/** Draws a line of text within a specified rectangle.
The text will be positioned within the rectangle based on the justification


Loading…
Cancel
Save