If you want to use your own custom font while drawing some text in your application then you can store the ttf file in the resource folder and construct the custom font and use Canvas->DrawText() API
Arnaud Guyon
Arnaud Guyon
2013年 09月 13日 04:10
I didn't manage to use a custom font in my project.
I tried to put the .ttf in res, res/fonts, or some screen density folders, the font->Construct always returns E_FILE_NOT_FOUND.
Font * font = new Font();
result r = font->Construct(L"fonts/roboto.ttf", FONT_STYLE_PLAIN, 20);
can someone help ?
thank you.
Anonymous
Anonymous
2013年 09月 13日 05:05
put your fonts inside /data/fonts/ folder
String path = App::GetInstance()->GetAppDataPath() +"/fonts/arial.tff";