Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Wrong font displayed in document.

More
IP: 192.168.0.71 11 years 9 months ago - 11 years 9 months ago #6142 by LingvistonTheOne
I don't understand what you mean. Now I'm using these lines:
load_std_font("PR.ttf", assets, files);
fontfileListAdd(act.getFilesDir().getAbsolutePath() + "/PR.ttf");
setDefaultFont(null, "Palatino-Roman", true);
Like you suggested in two previous comments.
Can you provide a complete example not by scratches? If this code is ok then it seems like I'm using wrong font.
Last edit: 11 years 9 months ago by chetberry.
More
IP: 192.168.0.71 11 years 9 months ago - 11 years 9 months ago #6145 by radaee
like these codes, these codes must placed after fontfileListStart() and before fontfileListEnd()
in Global.Init().
Code:
String PRFont_path = files.getAbsolutePath() + "/PR.ttf";// get destiny sub = new File(PRFont_path); if (!sub.exists()) { try { InputStream src; FileOutputStream dst = new FileOutputStream( new File(PRFont_path)); src = assets.open("PR.ttf"); while ((read = src.read(buf)) > 0) dst.write(buf, 0, read); src.close(); src = null; dst.close(); dst = null; } catch (Exception e) { } } sub = null; fontfileListAdd(PRFont_path);
Last edit: 11 years 9 months ago by .
Time to create page: 0.403 seconds
Powered by Kunena Forum