1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Formatting

This commit is contained in:
Tom Poole 2023-09-29 16:41:53 +01:00
parent ff0cb4ad5b
commit 4153d59e39
279 changed files with 1281 additions and 1281 deletions

View file

@ -177,7 +177,7 @@ void GlyphArrangement::addCurtailedLineOfText (const Font& font, const String& t
auto isWhitespace = isNonBreakingSpace (*t) || t.isWhitespace();
glyphs.add (PositionedGlyph (font, t.getAndAdvance(),
newGlyphs.getUnchecked(i),
newGlyphs.getUnchecked (i),
xOffset + thisX, yOffset,
nextX - thisX, isWhitespace));
}
@ -239,8 +239,8 @@ void GlyphArrangement::addJustifiedText (const Font& font, const String& text,
{
int i = lineStartIndex;
if (glyphs.getReference(i).getCharacter() != '\n'
&& glyphs.getReference(i).getCharacter() != '\r')
if (glyphs.getReference (i).getCharacter() != '\n'
&& glyphs.getReference (i).getCharacter() != '\r')
++i;
auto lineMaxX = glyphs.getReference (lineStartIndex).getLeft() + maxLineWidth;
@ -256,7 +256,7 @@ void GlyphArrangement::addJustifiedText (const Font& font, const String& text,
++i;
if (c == '\r' && i < glyphs.size()
&& glyphs.getReference(i).getCharacter() == '\n')
&& glyphs.getReference (i).getCharacter() == '\n')
++i;
break;