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
11 years 1 month ago #8434
by support
Replied by support on topic Issue while rendering text in Android OS 5.0
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?
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?
- arcmobile.div
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 0
11 years 1 month ago - 11 years 1 month ago #8435
by arcmobile.div
Replied by arcmobile.div on topic Issue while rendering text in Android OS 5.0
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.
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.
- arcmobile.div
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 0
11 years 1 month ago #8436
by arcmobile.div
Replied by arcmobile.div on topic Issue while rendering text in Android OS 5.0
Any update on the issue.
11 years 1 month ago #8437
by radaee
Replied by radaee on topic Issue while rendering text in Android OS 5.0
fonts added as these codes:
and for annotation text codes:
first u shall check "/system/fonts/DroidSansFallback.ttf" exists, and can read.
second, u can check is DroidSansFallback exists on fontlist, like codes:
at last, if, system font can't be used for annotation, u can setAnnotFont t other font.
Code:
fontfileListStart();
fontfileListAdd("/system/fonts/DroidSans.ttf");
fontfileListAdd("/system/fonts/Roboto-Regular.ttf");
fontfileListAdd("/system/fonts/DroidSansFallback.ttf");
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);
}
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++;
}
11 years 1 month ago #8445
by Davide
Replied by Davide on topic Issue while rendering text in Android OS 5.0
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.
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.
- arcmobile.div
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 80
- Thank you received: 0
11 years 1 month ago #8458
by arcmobile.div
Replied by arcmobile.div on topic Issue while rendering text in Android OS 5.0
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.
The default font size is large.
Kindly advice.
Time to create page: 0.388 seconds