- Posts: 97
- Thank you received: 0
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
text is not written correct showing squres
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
10 years 6 days ago - 10 years 4 days ago #10089
by ankur123987
text is not written correct showing squres was created by ankur123987
Hi radaeepdf Team,
I am trying to write the text at pdf file . I am trying this link www.radaeepdf.com/support/knowledge-base...component&kbartid=35 for write at pdf file
please see the attachment for error ..AS you can see the sqare box at the top of the pdf page in attachment
Please suggest how can i resolve ?
Thanks
I am trying to write the text at pdf file . I am trying this link www.radaeepdf.com/support/knowledge-base...component&kbartid=35 for write at pdf file
please see the attachment for error ..AS you can see the sqare box at the top of the pdf page in attachment
Please suggest how can i resolve ?
Thanks
Last edit: 10 years 4 days ago by ankur123987.
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 4 days ago #10093
by ankur123987
Replied by ankur123987 on topic text is not written correct showing squres
hello radaeepdf team,
I am surprised to see that my attachment is not showing here . I dont know you got it or not . please provide the solution of rect boxes while write text at pdf file.
please provide the solution as soon as possible
Thanks
I am surprised to see that my attachment is not showing here . I dont know you got it or not . please provide the solution of rect boxes while write text at pdf file.
please provide the solution as soon as possible
Thanks
9 years 9 months ago #10478
by gabmor
Replied by gabmor on topic text is not written correct showing squres
Did you solve this problema?
9 years 9 months ago #10480
by support
Replied by support on topic text is not written correct showing squres
Normally squares are due to not available fonts.
Android doesn't provide any fonts apart of Roboto and few more.
Our package contains free to be distributed fonts that substitute standard PS font sets and you should include them in your own application.
If you've some particular needs, please explain them here... we will be glad to help you.
Android doesn't provide any fonts apart of Roboto and few more.
Our package contains free to be distributed fonts that substitute standard PS font sets and you should include them in your own application.
If you've some particular needs, please explain them here... we will be glad to help you.
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
9 years 9 months ago - 9 years 9 months ago #10486
by ankur123987
Replied by ankur123987 on topic text is not written correct showing squres
in spite of predefined fonts . can we pass our customize ttf or font file to native methods i have OpenSans-Light_0.ttf file how can i use it in RAdaeepdf library . it would easy to kept the file in assert folder and its available to every-device instead to depend on devices font ..
thanks
thanks
Last edit: 9 years 9 months ago by ankur123987.
9 years 9 months ago #10488
by Davide
Replied by Davide on topic text is not written correct showing squres
Hi,
you could replace the instance of fallback fonts and the default font for annots.
Use this to load your font, add this in Global class between fontfileListStart() and fontfileListEnd() :
And this to use your font instead of the default font for annots ;
We checked and we found that font license is ok for distribution in commercial app.
The only thing to watch out is that it does not include Chinese, Japanese and Korean.
you could replace the instance of fallback fonts and the default font for annots.
Use this to load your font, add this in Global class between fontfileListStart() and fontfileListEnd() :
Code:
load_truetype_font(Resources res, int res_id, File dst);
Code:
// set text font for edit-box and combo-box editing.
if (!setAnnotFont("Your Font") && face_name != null) {
setAnnotFont(face_name);
}
Note: you may need to remap your font with the font used in the pdf.
For example you can check Global.java
We checked and we found that font license is ok for distribution in commercial app.
The only thing to watch out is that it does not include Chinese, Japanese and Korean.
Time to create page: 0.523 seconds