PDF standard CJK font confusion

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
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
10 0 obj
<</Length 164
>>
stream
BT
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

Ok, by reading other (unrelated) problems, I figured out where I wnet wrong... I'll just try to explain, perhaps it is useful to someone else.
<</Type /Font /Subtype /Type0 /Name /F15 /BaseFont /AdobeSongStd-Light /DescendantFonts [ 8 0 R ] /Encoding /GBK2K-H>>
Because the Chinese characters looked OK, I figured this part was fine. GBK-EUC-H, GBKp-EUC-H and GBK2K-H encodings give good results, but that's another issue.
The problem was the mapping of my width table to the character codes:
<<
/Type /Font /Subtype /CIDFontType2 /BaseFont /AdobeSongStd-Light /WinCharSet 136 /FontDescriptor 7 0 R
/W [1 [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 (GB1)/Supplement 4 >>
>>
I thought the CIDSystemInfo was wrong, since that was the only part I didn't get. It turned out that my width table was wrong. I build a table of character code's VS widths. What I needed to do, was make a table of glyph indices VS widths:
/W [1 [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]
22354 [462]
22353 [462]
22357 [500]
Regards,
Wiebe.

Similar Messages

  • Standard CJF font without embedding

    So I installed all the language packs supported by Acrobat Reader 7. This installed 5 fonts, AdobeSongStd-Light, AdobeMingStd-Light, AdobeMyungjoStd-Medium, KozMinProVI-Regular and KozGoPro-Medium. When I use these font names, everything works just fine.
    But I've noticed that other references mention that 7 fonts are installed: HanyangSystemsGothicMedium, HanyangSystemsShinMyeongJoMedium, HeiseiKakuGothicW5, HeiseiMinchoW3, MonotypeHeiMedium, MonotypeSungLight, SinoTypeSongLight. These names indeed seem to recognized as well, although I can't find them anywhere.
    Where do these names come from? None of the 12 fonts are mentioned in the PDF reference (1.7, PDF32000-1:2008). When using CJK in PDF's which names should/can be used?
    Regards,
    Wiebe.

    Thanks.
    I understand that embedding fonts is more reliable, but it is also much more difficult. My understanding was that these language packs exist, so these fonts don't have to be embedded (to reduce file size)?
    I get this idea form sources like http://www.pdf-tools.com/asp/faq.asp?s=&q=58 and many many other sites where these 14 fonts are called "standard". The previous link even mentions that "these fonts should preferably not be embedded in a document...". And also, PDF 32000-1, par 9.6.2.2 mentions "14 Special Fonts". It mentions that these 14 fonts shold be available to conforming readers. Aren't these fonts a at least a bit special? DynamicPDF also claims that the 7 CJK fonts don't need to be embedded: http://www.cete.com/Support/user-manual/DynamicPDFGeneratorForJava/Progrmming/FontsAndText /CJKFonts.htm
    When I specify AdobeSong as font, and there is no language pack installed, Acrobat Reader will offer to download it.  I think it won't do this for just any font, but I'm not sure about anything anymore. This font stuff is very complex...
    If these 7 fonts are not in any way special, why do all these PDF creator tools refere to these exact same fonts?
    I examined many PDF files, and AdobeSong is used a lot without embedding it. Is this really that bad?
    Regards,
    Wiebe.

  • Standard 14 fonts embedding

    Hello,
    I read several times carefully the table 111 of ISO-32000, and always bear in mind that "Beginning with PDF 1.5, the special treatment given to the standard 14
    fonts is deprecated. Conforming writers should represent all fonts using a complete font descriptor. For backwards capability, conforming readers shall still provide the special treatment identified for the standard 14 fonts.".
    However, I found a conforming writer that produces 1.6 spec PDFs without embedding the standard fonts. The disturbing point is that it's an Adobe product.
    http://www.adobe.com/security/pdfs/entrust_sample_doc.pdf
    Maybe I'm missing something, but I can't see what.
    So, here is my question: will my soul burn in hell if I'm guilty of writing a PDF writer that still gives to the standard 14 fonts their special treatment?

    ISO 32000-1 PDF does not require that you embed any of those original 14 fonts if you reference them, just that the font descriptor be complete just as it would be for any other font that is used / referenced but not embedded.
              - Dov

  • CJK font (non)collecting

    Why does InDesign exclude Chinese, Japanese and Korean fonts when collecting fonts during a "Package"?
    It is illogical that InDesign lets you use the fonts, but not package them. And it's very vague, sneaky even, to refer to CJK fonts in the dialog without being more implicit.

    CJK fonts can be tens of megabytes in size (modern ones typically contain on the order of 30,000 characters and some hold twice that many).  Moreover, CJK fonts typically come with stricter licenses than alphabetic.  Finally, if I were responsible for a print shop I know I'd much prefer to receive a well-formed PDF with CJK safely subsetted and embedded rather than have to install a colossal font.
    David

  • How to change background color of text in pdf based by font name

    Hi
    How to change the background color of text in PDF based by font name. Is there any option in Javascript. e.g: If PDF containing ARIAL font, the ARIAL text background color needs to be changed in red color for all pages. Same for all fonts with different different color in the PDF.
    Thanks in Advance

    Hi
    1) Is there any possibilities to highlight with different color based on font using javascript
    2) list of font used in PDF using javascript
    3) How to hilight the text using javascript
    Thanks in Advance

  • Can not copy text from pdf with unicode font embedded.

    Hello,
    I have a pdf with unicode font embedded in it. The pdf has no restrictions. When i try to copy some text text fro m pdf and then paste itin word, the text is not the same which i copied from the pdf. it changes.
    I have tried multiple softwares which converts pdf to word or pdf to excel. but none can do my job. what should be the problem? Kindly guide me.
    Thanks & Regards-
    rashmi

    Thanks for your prompt reply.
    As i said i have the font installed on my system. for your reference,
    following is the link to the pdf file. also the second link is the link to
    the fonts used. Kindly help me to sort this issue.
    https://www.yousendit.com/download/T2dkcHBEVEh0QTIwYjhUQw
    https://www.yousendit.com/download/T2dkcHBFQXBrYUJYd3NUQw

  • My keyboard is writing in Greek? even though the settings and fonts say it's writing in standard Apple font? I can't log into any of my accounts, because even though I type the password correctly, the keys are writing and beings submitted in Greek...HELP.

    My keyboard went nuts...I got on my MacBook today after not using it for about 24 hours, and the fonts all changed to like Greek. No matter where I am at (web browser, word document, etc). I even went into settings and fonts, and it says it is using Arial or some other standard "Apple" font, but the keys continue to write in Greek.
    It gets worse-I logged out thinking I just needed to reboot...but now I cannot get back in because it's still not writing correctly. What's even weired (and I have no idea if this is related or not) but my Capslock Key and my Delete key have like switched roles...ALSO, when I press down the "A" key (as there is an "A" in my password) the keyboard writes it 3 times...even though I only hit it once. SOMEONE HELP ME PLEASE. I am a full-time student and need my computer for homework.
    I'm locked out AND if I do get in, the font it still messed up as well as the Delete and Capslock keys...

    It sounds to me like your keyboard has been damaged and needs to be repaired or replaced.  Can you try an external keyboard?

  • I need to know the standard default font for Firefox

    I had a Dell 20 inch 2007fp monitor that I had to give up. I purchased an LG 22inch widescreen monitor.
    My home page is the Drudge Report and with the new monitor the font is all messed up.
    What is the standard default font for Firefox?

    You can see the defaults in a screenshot in this KB article: [[Some text shows up bold after upgrade]]<br />
    You can check the font setting in: Tools > Options > Content : Fonts & Colors: Advanced<br />
    Default Font: Times New Roman (16)<br />
    <br />
    Fonts for : Western<br />
    <br />
    Proportional: Serif (16)<br />
    Serif : Times New Roman<br />
    Sans-serif : Arial<br />
    Monospace : Courier New (13)
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • PDF-standard in osx: PDF/  X-4:2008?

    To send print online to my printer-service, they require a pdf-standard called pdf/x-4:2008 (the x stands for exchange they say. does not really say anything ...).
    I am a typical Mac-user, and don't really like these kind of specs ... To me, exporting should just work.
    However, wiser by experience ... it is always good to check this.
    My question is: is the export-standard that comes from macosx 10.8 in line with these requirements? ... I would think so, after all, I am working from the best operating system on the planet?  :-)
    But ... nowhere can I find any specs concerning the pdf-format from osx

    so, that would mean if I want to be sure there is no incompatibility with the printers machines (almost definately still in DOS-mode  :-)  ), I'd better design in Indesign or such. ...
    It is odd that Apple does not use a later version. Would there be any difference in actual fact?
    Also, where can I find this info?
    thanks

  • I get missing fonts when opening a PDF, but the fonts are activated, I get garbage

    I get missing fonts when opening a PDF, but the fonts are activated, I get garbage

    The activated fonts are not the same version as those in the PDF. If you use Type>Find Font and replace the fonts with ones from your computer does it work?

  • Convert a webpage to PDF ,the Arabic font does not display ie,blank

    When I trying to convert a webpage to PDF ,the Arabic font does not display ie,blank.how to solve this problem.

    THANKS..  but a problem -my computer there no arabic script  font ..how add arabic font in "language script" pls see the print screen ..ok. pls help me..
    I select Roman(windows) then language script option does not contain arabic only few laguages -How to add arabic ? pls help me..
    Thanks &Regards.

  • CONVERT_OTF Convert TO PDF the Chinese font bold is lost

    Dear All,
         When I use CONVERT_OTF Convert TO PDF the Chinese font bold is lost, but use Print to PDF method, the Font Bold can be showed normal.
    Also used these reports RSTXPDFT4, RSTXPDF2UC, it does not work.
    How can I solve this issue?
    Many Thanks

    Hi,Aidan,
        Thanks,
         Sorry,the option CJK_USE_BOLD_IT does not exist in report RSTXPDF3 when I run this report.
         I found only CJK_SMALL_FONT such as u2018CJK*u2019 in my system.
         Is there a way to add CJK_USE_BOLD_IT?
        When I check RSTXPDF3,I found all the options are hard copy in RSTXPDF3 list by Constants.

  • PDF to PS: fonts missing with Reader8, ok with Reader5

    Hello,
    I would appreciate help on this issue with Adobe Reader8 with some files.
    I am using Adobe Reader on Solaris (sparc) and I use
         /path/to/acroread -toPostScript -pairs file.pdf file.ps
    to create PostScript files.  This works fine for most files, including most files with Asian fonts.
    However, for some PDFs with Asian fonts, the PS generated by Reader8 is missing some Asian fonts,
    so the output is garbled, although PS generated by Reader5 is just fine.
    If I open the PDF in Reader8 GUI then it appears fine.
    Here is the PDF as well as output produced by both Reader5 and Reader8:
    https://drive.google.com/folderview?id=0B4twQW4MeUMIdW9zNE15bmdZZlU&usp=sharing
    What am I doing wrong and what should I do make the fonts appear in the PS from Reader8?
    Thanks for your help.

    Well, Kurt Lang did solve my problem and I won't ever be enough thankful to him. He tried one of my font and took the time to examine it with FontLab Studio. In case other persons experiment the same type of troubles, I am pasting the mail I got (along with the corrected font) for info :
    Hi Patrick,
    I did find one issue in particular. OpenType fonts should have a UTM setting of 1000. These were at 2048. So I changed those and had FontLab Studio rebuild the names (I just let it do its thing).
    The originals you had sent wouldn’t even appear in Office 2011. The rebuilt ones do, though for whatever reason, bold italic won’t show. However, you can click the italic and bold buttons and the correct font is used. Otherwise, the new fonts all work as expected in Photoshop, Illustrator, InDesign, TextEdit and others. I tested them in both Mavericks and Yosemite.
    Can’t guarantee success, but give these a shot.
    Kurt
    That guy is an angel. He spent a tremendous amount of time examining, testing on Mavericks and Yosemite and on several apps until resolving the problem. Too helpful, too nice and too competent. That's a treat.

  • Editing PDFs w/embedded fonts

    I make pdfs w/the fonts 100% embeded (not subset), and i use dummy type where i want others to be able to fill in, example phone and address
    so in my pdf the type is
    000-000-000
    Address Line 1
    City, ST 00000
    I can go into the pdf and change the type but only if i have the fonts loaded.
    I need other people, on different systems, to be able to change the type but keeping it in the typeface, and not all have the same fonts. so it gives them errors.
    Doesn't embedding the whole font supposed to make this work? Does anyone know a way this would work.
    I even tried doing it as forms, but the type defaults to system fonts, not what I specify.
    Please help, its driving me nuts!
    Thanks!
    dianne

    I thought Adobe had various agreements with type house to allow the embedding of fonts with PDF's so that they viewed exactly as originator had created  the PDF.  That embedding would only be allowed on fonts they either owned or had agreements with. And that the font resided within the PDF. If the exact font is on the user's Machine they could edit (with acrobat) the document as needed. Now If they didn't have, the same font a substitute would be used.
    This has been my understanding as was explained to be since Acrobat 4 days.

  • Avoid "Embedded Subset" in PDF when embedding fonts

    Hi,  I am preparing documents according to a requirement for which "When embedding fonts, all characters for the font should be embedded, not just a subset of the fonts being used in the document."
    When creating the document with Acrobat 6 (or Acrobat XI) even if  'Adobe PDF Settings' include specifications
    - Embed all fonts: checked
    - Subset embedded fonts when ...: unchecked
    - List of Fonts to never Embed: null
    (Compatibility: Acrobat 5.0, version 1.4)
    the result is that the produced PDF includes all fonts with the specification '(Embedded Subset)'.
    How to configure 'Adobe PDF Settings' from Word so that in all cases the 'full' font is embedded?

    Hi,
    thank you for your answer! I am still puzzled though.
    It sounds strange that an option is included in 'Adobe PDF Settings'
    - Subset embedded fonts when ...: unchecked
    and this is not executed when the PDF is created.
    According to your experience "certain types of fonts can only be embedded as subsets". Is there a list of the fonts that are not embedded as full font?
    I have read that "Some fonts have a 'do not embed' flag which is a copyright restriction from the vendor of the font".
    Can this be the reason for "subset embedding" instead of "full" font embedding?
    Many thanks in advance for any other feedback,
    also concerning actual enforcement of the requirement for full font embedding (by the FDA),
    Armando

Maybe you are looking for