Hi,
I'm trying to embed Chineese, Japanese en Korean text in my PDF's. To avoid embedding the fonts (or font subsets), I am using the standard PDF fonts form Acrobat's font packs.
I did manage to get the text in, but the width of the character is all wrong. It must have something to do with the CIDSystemInfo or the Encoding, but I can't figure it out.
I am reading the widths from the AdobeSongStd-Light.otf font, and I am using the same widths for calculating the length of the text.
Below are some fragments of my PDF. If required, I can post the PDF as well.
It would be great if someone could point me into the right direction.
Regards, and thanks in advance,
Wiebe.
5 0 obj
<</ProcSet [/PDF /Text /ImageB /ImageC] /Font << /F0 6 0 R /F15 9 0 R>>
>>endobj
7 0 obj
<<
/Type /FontDescriptor
/FontName /AdobeSongStd-Light
/Flags 4
/FontBBox [ -150 -208 1100 792 ]
/MissingWidth 1000
/StemV 91
/StemH 91
/ItalicAngle 0
/CapHeight 792
/XHeight 554
/Ascent 792
/Descent -208
/Leading 208
/MaxWidth 1000
/AvgWidth 500
>>
endobj
10 0 obj BT
8 0 obj
<<
/Type /Font
/Subtype /CIDFontType2
/BaseFont /AdobeSongStd-Light
/WinCharSet 136
/FontDescriptor 7 0 R
/W [0 [207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 207 270 342 467 462 797 710 239 374 374 423 605 238 375 238 334 462 462 462 462 462 462 462 462 462 462 238 238 605 605 605 344 748 684 560 695 739 563 511 729 793 318 312 666 526 896 758 772 544 772 628 465 607 753 711 972 647 620 607 374 333 374 606 500 239 417 503 427 529 415 264 444 518 241 230 495 228 793 527 524 524 504 338 336 277 517 450 652 466 452 407 370 258 370 605]
165 [462]
8364 [462]
12351 [500]
]
/DW 1000
/CIDSystemInfo << /Registry (Adobe)/Ordering (CNS1)/Supplement 0 >>
>>
endobj
9 0 obj
<<
/Type /Font
/Subtype /Type0
/Name /F15
/BaseFont /AdobeSongStd-Light
/DescendantFonts [ 8 0 R ]
/Encoding /GBK2K-H
>>
endobj
<</Length 164
>>
stream
100 Tz
0 Tc
/F15 12 Tf
0 0 0 rg
0 Tw
1 0 0 1 50 712.18 Tm
(çËŽð\(•Ð’i\)abc
)'
1 0 0 1 50 700.18 Tm
(abcdefghijkl
)'
1 0 0 1 50 688.18 Tm
(mnopqrstuvwxyzab)'
ET
endstream
endobj