mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
Removed Graphics::drawTextAsPath, which is obsolete, since the same job can be done using Graphics::addTransform and any of the other drawText methods.
This commit is contained in:
parent
ebc3b797bd
commit
49fd486c23
2 changed files with 1 additions and 22 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue