Label SetFont not working?
By Sunny shah
14 Jun 2013 02:28
English
1 Replies
hello i want to add custom font on my label text.
Label *pLbl1 = new Label();
pLbl1->Construct(Rectangle(300, 20, 120, 100), L"Text");
Font* pFont = new Font;
String path = App::GetInstance()->GetAppRootPath()
+ L"res/AxisStd-Light.otf";
pFont->Construct(path, FONT_STYLE_BOLD, 35);
pLbl1->SetFont(path);
Edited on 18 03, 2014
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.