예제 #1
0
        public void FillMusicFontSymbol(float x, float y, float scale, MusicFontSymbol symbol)
        {
            if (symbol == MusicFontSymbol.None)
            {
                return;
            }

            //_buffer += "<text x=\"";
            //_buffer += x;
            //_buffer += "\" y=\"";
            //_buffer += y + GetSvgBaseLineOffset();
            //_buffer += "\" style=\"font:";
            //_buffer += Resources.MusicFont.ToCssString();
            //_buffer += "; fill:";
            //_buffer += Color.ToRgbaString();
            //_buffer += ";\" ";
            //_buffer += " dominant-baseline=\"top\" text-anchor=\"start\"";
            //_buffer += ">&#x";
            //_buffer += Std.ToHexString((int)symbol);
            //_buffer += ";</text>\n";


            //if (symbol == MusicFontSymbol.None)
            //{
            //    return;
            //}

            SvgRenderer glyph = new SvgRenderer(MusicFont.SymbolLookup[symbol], scale, scale);

            glyph.Paint(x, y, this);
        }
예제 #2
0
        public void FillMusicFontSymbol(float x, float y, float scale, MusicFontSymbol symbol)
        {
            if (symbol == MusicFontSymbol.None)
            {
                return;
            }

            SvgRenderer glyph = new SvgRenderer(MusicFont.SymbolLookup[symbol], scale, scale);

            glyph.Paint(x, y, this);
        }