Skip to content

Commit

Permalink
Should render the ruby/romaji character into screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed May 21, 2022
1 parent 986c8b6 commit ef6667f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions osu.Framework.Font/Graphics/Sprites/LyricSpriteText_Characters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,20 @@ private void computeScreenSpaceCharacters()
});
}

var positionCharacters = new List<PositionTextBuilderGlyph>()
.Concat(rubyCharacters.SelectMany(x => x.Value))
.Concat(romajiCharacters.SelectMany(x => x.Value));

foreach (var character in positionCharacters)
{
screenSpaceCharactersBacking.Add(new ScreenSpaceCharacterPart
{
DrawQuad = ToScreenSpace(character.DrawRectangle.Inflate(inflationAmount)),
InflationPercentage = Vector2.Divide(inflationAmount, character.DrawRectangle.Size),
Texture = character.Texture
});
}

localScreenSpaceCache.Validate();
}

Expand Down

0 comments on commit ef6667f

Please sign in to comment.