Languages

Menu
Sites
Language
Using Custom fonts

 

 

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 Replies
muditha murthy
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
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.
put your fonts inside /data/fonts/ folder String path = App::GetInstance()->GetAppDataPath() +"/fonts/arial.tff";