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

Issue while rendering text in Android OS 5.0

More
11 years 1 month ago #8434 by support
It's seems are an issue about font encoding.
Which font are you using?
May you past the font declaration from you source code?
May you past the text that should appear in that box?
More
11 years 1 month ago - 11 years 1 month ago #8435 by arcmobile.div
i> Am using the PDFReader 3,2 and didnot set any default font.
ii>Text that should appear on the textbox: "test"
iii> If required I can set the default font , using setDefaultFont(collection, fontname, fixed) but I didnot implement that.
Last edit: 11 years 1 month ago by arcmobile.div.
More
11 years 1 month ago #8436 by arcmobile.div
Any update on the issue.
More
11 years 1 month ago #8437 by radaee
fonts added as these codes:
Code:
fontfileListStart(); fontfileListAdd("/system/fonts/DroidSans.ttf"); fontfileListAdd("/system/fonts/Roboto-Regular.ttf"); fontfileListAdd("/system/fonts/DroidSansFallback.ttf");
and for annotation text codes:
Code:
if (!setAnnotFont("DroidSansFallback") && face_name != null) { setAnnotFont(face_name); } // set text font for edit-box and combo-box editing. if (!setAnnotFont("DroidSansFallback") && face_name != null) { setAnnotFont(face_name); }
first u shall check "/system/fonts/DroidSansFallback.ttf" exists, and can read.
second, u can check is DroidSansFallback exists on fontlist, like codes:
Code:
int face_first = 0; int face_count = getFaceCount(); while (face_first < face_count) { face_name = getFaceName(face_first); face_first++; }
at last, if, system font can't be used for annotation, u can setAnnotFont t other font.
More
11 years 1 month ago #8445 by Davide
Hi,
you can include a font taken from the family Roboto (free with Apache 2.0 license even for commercial application) in your project.

You read it from assets, write to sandbox and then load from sandbox.
More
11 years 1 month ago #8458 by arcmobile.div
After adding a font from the Roboto family - "Roboto-Regular" , the text is rendered, but how to control the font size.
The default font size is large.

Kindly advice.
Time to create page: 0.388 seconds
Powered by Kunena Forum