开发者

Can not add font to dynamic text field

开发者 https://www.devze.com 2023-01-11 00:46 出处:网络
I am Tring to Add Font in my dynamic text field But it just dont happens here is the code var format:TextFormat = new TextFormat();

I am Tring to Add Font in my dynamic text field But it just dont happens here is the code

var format:TextFormat = new TextFormat(); format.color = stringColor;

format.font="Palentino linotype"; mysidepanel.badgeHolder.defaultbg.usernameholder.engraveUsername.setTextFormat(format); mysidepanel.badgeHolder.defaultbg.designationholder.engraveUserdesg.setTextFormat(for开发者_Python百科mat); mysidepanel.badgeHolder.defaultbg.usersloganholder.engraveUserslogan.setTextFormat(format);

ANd i have embeded the font Palentino linotype. may be i am not embeding the font properly if some one helps me in this i will be very gratefull.


Please set mysidepanel.badgeHolder.defaultbg.usernameholder.engraveUsername.embedFonts = true before setting text format. Here is a more complete guide.

0

精彩评论

暂无评论...
验证码 换一张
取 消