Label SetFont not working?

Label SetFont not working?

BY 14 Jun 2013 Native Application Development

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);

 

 

Written by