HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › TTF embadding for one font is not working
- This topic has 6 replies, 2 voices, and was last updated May 31, 2011
04:11:03 byanas_srairah.
-
AuthorPosts
-
May 25, 2011 at 05:38#26562
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
May 26, 2011 at 21:26#28539hi
can i please get a hint on this topic . does TTF embadding support all kinds of TTF filesthank ou
May 27, 2011 at 12:54#28540As 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:
[language=java:1omhudx8]simplified arabic=arial.ttf
simplified arabic Bold=arialbd.ttf
simplified arabic Bold Italic=arialbi.ttf
simplified arabic Italic=ariali.ttf[/language:1omhudx8](and make sure, the mentioned .TTF files are available)
May 28, 2011 at 21:55#28541hello
here is tha part in discussion in pd4ml.properties fileSimplified Arabic=simpo.ttf
Simplified Arabic Bold=simpbdo.ttf
Simplified Arabic Fixed=simpfxo.ttfand 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
May 30, 2011 at 15:52May 30, 2011 at 16:33#28543In 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.
May 31, 2011 at 04:11#28544hello
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 toolthanks
-
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.
