AlphaTab.Platform.CSharp.GdiCanvas.FillMusicFontSymbol C# (CSharp) Method

FillMusicFontSymbol() public method

public FillMusicFontSymbol ( float x, float y, float scale, MusicFontSymbol symbol ) : void
x float
y float
scale float
symbol MusicFontSymbol
return void
        public void FillMusicFontSymbol(float x, float y, float scale, MusicFontSymbol symbol)
        {
            if (symbol == MusicFontSymbol.None)
            {
                return;
            }

            // for whatever reason the padding on GDI font rendering is a bit messed up, there is 1px padding on the left
            x += scale;

            _graphics.DrawString(Std.StringFromCharCode((int)symbol), GetMusicFont(scale), _brush, x, y, MusicFontFormat);
        }