PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: TTF embadding for one font is not working
   PostPosted: 25 May 2011, 07:38 
hello
i am using TTF enbadding but one of the fonts doesnt show the text correctly , and when i copy the text to microsoft word it shows the correct look . why would that be . is there a solution .

font : simplified arabic


thank you


  Subject: Re: TTF embadding for one font is not working
   PostPosted: 26 May 2011, 23:26 
hi
can i please get a hint on this topic . does TTF embadding support all kinds of TTF files

thank ou


  Subject: Re: TTF embadding for one font is not working
   PostPosted: 27 May 2011, 14:54 
As I can imagine, "simplified arabic" is not particular font, but a font family. So it relies on font substitution logic - to auto-find a font has simplified arabic glyphs.

It is difficult to say why it does not work in your case. I would try to explicitly define the font family in pd4fonts.properties and assign to it any TTF, which has the Arabic glyphs. For example:

simplified\ arabic=arial.ttf
simplified\ arabic\ Bold=arialbd.ttf
simplified\ arabic\ Bold\ Italic=arialbi.ttf
simplified\ arabic\ Italic=ariali.ttf


(and make sure, the mentioned .TTF files are available)


  Subject: Re: TTF embadding for one font is not working
   PostPosted: 28 May 2011, 23:55 
hello
here is tha part in discussion in pd4ml.properties file

Simplified\ Arabic=simpo.ttf
Simplified\ Arabic\ Bold=simpbdo.ttf
Simplified\ Arabic\ Fixed=simpfxo.ttf

and the ttf files are int the right place but why this is happening with this font only bearing in mind that i took the ttf files from windows fonts and if i copy the text generated with this font to microsoft office it shows correctly .

what do you think


  Subject: Re: TTF embadding for one font is not working
   PostPosted: 30 May 2011, 17:52 
hello

what do you think please

thanks


  Subject: Re: TTF embadding for one font is not working
   PostPosted: 30 May 2011, 18:33 
In the post
html-css-to-pdf-rendering-issues-f3/fonts-included-in-the-html-t391.html
I already explained you, why PD4ML needs an access to physical TTF font files. JRE or Microsoft office have an access to font resources / font objects, so they can display the fonts on a screen.

But in a case of PDF the font files need to be parsed, used glyphs extracted and the limited character subset to be included to the resulting document. You cannot get the needed info from java.awt.Font object,. So PD4ML implements a simple "font name->font file" mapping approach. I am sorry if you find it overcomplicated.


  Subject: Re: TTF embadding for one font is not working
   PostPosted: 31 May 2011, 06:11 
hello
i dont find it overcomplicated . and i already done TTf embadding using your library and it works for all the fonts in my list except for this one fone which shows about 60% of the correct form and i also made sure that the mappings in the preperty file are correct .even thought this font shows correctly the same text in any other tool

thanks



[Reply]     [ 7 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share