Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: CJK Font width with '/W' entry
Conf: (P-PDF) Developers, Msg: 132601
From: ved_jai
Date: 5/12/2005 10:29 PM

hi all
I have doubts regarding picking up widths of CJK fonts from the "/W"
entry. Can someone help me out with this regards. Actually if a complete
explanation on how to get the correct widths from the "/W" entry is
possible that would be really nice, else I have some examples to share
from which if an explanation can be derived. Actually the problem I am
facing is to map the correct width for a particular character.

Example 1.)
* The font that is given is ???
* Its encoding is given as KSCms-UHC-H
* The /W entry is /W [ 1 94 500]
* Also DW is given as 1000 and MissingWidth is given as 500.
* Which takes preference (DW or MissingWidth) ??

* Now as per the PDFReference we have the widths given for CID 1 to
CID 94.
The text string which has to applied this font is given as
Tj . This is a text string for the text ???? .
* Now when we look into the Cmap of KSCms-UHC-H we see that the CID
we get equivalent to
B1E2 is 1245,
BEF7 is 2488,
BAD0 is 2073,
BCAE is 2227.

Now how do we map the font width per character ?
We see that the widths have been given only for CIDs 1 - 94. So in this
case should the width be picked from DW entry (or MissingWidth) or is
there some other way to pick the widths. Or is it that what I have
understood from the PDFReference is wrong ?

Example 2.)
* The font that is given is PPALKG+H2gtrE
* Its encoding is given as Identity-H
* The /W entry is /W [ 71 [ 333 ]
76 [ 855 ]
79 80 376
83 [ 291 ]
85 [ 291 375 595 ]
88 96 595
105 [ 708 ]
108 [ 671 ]
110 [ 740 765 ]
115 [ 638 ]
117 [ 775 ]
119 [ 654 ]
122 [ 625 ]
136 [ 541 ]
138 [ 541 ]
143 [ 574 289 ]
155 [ 359 566 ]
160 [ 587 ] ]

Also the ToUnicode entry is given. So whatever text string we get, will
now have to be mapped through this ToUnicode entry.
The text string given is <2CEE260A>Tj . The actual string that will be
displayed is ??. The equivalent unicode entries in the ToUnicode entry
are C804 and C120.
How will the mapping of widths for this case happen?

P.S. If we look into the CMAP for Identity-H we find that the CID for 2CEE
is 2CEE itself and for 260A is 260A itself.

These are 2 examples i have managed to catch hold of right now. I can
put more of such examples maybe later if required.

I hope I can receive some help with this issue.
Thanks and Regards
Jai Praful Ved




PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.