コード例 #1
0
        void CreateTypograph()
        {
            string text = TextUtil.NormalizeLineEnding(File.ReadAllText(@"C:\Users\Bryan\Desktop\text.gtxt"));

            displayProperties = new TypographDisplayProperties(OverflowBehavior.Extend, 500);

            var td = LoadFromMarkup.Load(text, english, false);

            Console.WriteLine(td.ToStringDebug());


            typograph = new Typograph(td, new Vector2(100, 100), displayProperties);
            //typograph = new Typograph(td, library.DefaultFont, library.DefaultTextColor, library.DefaultFontSize, new Vector2(100, 100), displayProperties);
        }
コード例 #2
0
 internal virtual void Apply(Typograph typograph, int glyphIndex, Glyph glyph)
 {
 }