示例#1
0
        protected override void Apply(TextLayout layout, bool enable, int slice)
        {
            var res = layout.SetFontStyle(this.style[slice], new TextRange(ffrom[slice], fto[slice]));

            layout.SetFontWeight(this.w[slice], new TextRange(ffrom[slice], fto[slice]));
            layout.SetFontStretch(this.s[slice], new TextRange(ffrom[slice], fto[slice]));
        }
示例#2
0
 protected override void Apply(TextLayout layout, bool enable, int slice)
 {
     var res = layout.SetFontStyle(this.style[slice], new TextRange(ffrom[slice], fto[slice]));
     layout.SetFontWeight(this.w[slice], new TextRange(ffrom[slice], fto[slice]));
     layout.SetFontStretch(this.s[slice], new TextRange(ffrom[slice], fto[slice]));
 }