How to specify 'Chinese' font?

Hi,
I can programatically generate a PDF document with English characters.
I can programatically generate a PDF document containing Japanese characters.
BUT...I cannot get 'CHinese' characters to work.
For Japanese I specify the fonts as follows...
4 0 obj<< /Type /Font /Subtype /Type0 /Name /F1 /BaseFont /MS-Mincho /DescendantFonts [ 5 0 R] /Encoding /90ms-RKSJ-H >>endobj
5 0 obj<< /Type /Font /Subtype /CIDFontType0 /BaseFont /MS-Mincho /FontDescriptor 6 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> /DW 1000 /W [231 324 500 326 389 500] >>endobj
6 0 obj<< /FontName /MS-Mincho /Descent 0 /FontBBox [ 0 0 1000 1000 ] /CapHeight 1000 /Ascent 1000 /StemV 100 /Flags 4 /ItalicAngle 0 /Type /FontDescriptor >>endobj
...how do I specify 'Chinese'?
Kind regards,
Simon

Hi Leonard,
I found the solution. Hurrah!
I was able to set the width (spacing) of the Latin glyphs, without affecting Chinese glyphs.
*** In the problematic PDF the font was defined as follows:
4 0 obj<< /Type /Font /Subtype /Type0 /Name /F1 /BaseFont /SimSun /DescendantFonts [ 5 0 R] /Encoding /GB-EUC-H >>endobj
5 0 obj<< /Type /Font /Subtype /CIDFontType0 /BaseFont /SimSun /FontDescriptor 6 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 2 >> /DW 1000 >>endobj
6 0 obj<< /FontName /SimSun /Descent 0 /FontBBox [ 0 0 0 0] /CapHeight 1000 /Ascent 1000 /StemV 100 /Flags 4 /ItalicAngle 0 /Type /FontDescriptor >>endobj
*** In mysolution PDF I have defined my font as follows:
4 0 obj<< /Type /Font /Subtype /Type0 /Name /F1 /BaseFont /SimSun /DescendantFonts [ 5 0 R] /Encoding /GB-EUC-H >>endobj
5 0 obj<< /Type /Font /Subtype /CIDFontType0 /BaseFont /SimSun /FontDescriptor 6 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 2 >>
/DW 1000 /DW 1000 /W [1 95 500 814 907 500 7712 7716 500] >>endobj
6 0 obj<< /FontName /SimSun /Descent 0 /FontBBox [ 0 0 0 0] /CapHeight 1000 /Ascent 1000 /StemV 1000 /Flags 4 /ItalicAngle 0 /Type /FontDescriptor >>endobj
* Notice the additional entry /W [1 95 500 814 907 500 7712 7716 500].
This sets the CIDs 1-95, 814-907 and 7712-776 to be 500, which is half the DW value of 1000.
*** How did I determine the CIDs of the Latin characters?
The answer was located in 'Adobe CJKV Character
Collections and CMaps for
CID-Keyed Fonts', (see http://partners.adobe.com/public/developer/en/font/5094.CJK_CID.pdf).
See section 2.1:
"...Supplement 0 (zero) of Adobe-GB1 enumerates 7,717 glyphs (CIDs 0
through 7716), provides support for the GB 2312-80 and GB 1988-89
character set standards, incorporates corrections and additions specified in
GB 6345.1-86, and includes vertical glyphs specified in GB/T 12345-90.
CIDs 195 and 77127715 are proportional-width Latin glyphs; and CIDs
814907 and 7716 are half-width Latin glyphs.".
Kind regards,
Simon

Similar Messages

  • How to insert chinese fonts in AI and PS? they recognize only some of them

    How to insert chinese fonts in AI and PS? they recognize only some of them

    Since you do not spell out program names, I can't suggest a program forum... but you can find by using the link below
    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll

  • How to install Chinese fonts on my application server

    Hi Experts,
    We are facing an issue in which the Adobe services PDF couldn't able to recognize chinese characters
    So, we want to install chinese fonts CNSONG,CNHEI etc on our application server (which is ABAP only system)
    Can any one share me the steps to perform for the same.
    Thanks in Advance !
    Regards
    Sandy

    Sandy,
    Read this sap note first: 195442 - Language import and Support Packages
    Refer to below forum & VIdeo on how to install chinese language in SAP system.
    how to install chinese language in sap ecc 6.0 unicode system
    www.youtube.com/watch?v=UDw_-ObL0z0
    Procedure
    Language Installation steps (make sure all Support Packages up to date)
    1. /nSMLT
    Select from menu LANGUAGE -> CLASSIFY
    Language = China
    Supplementation Language = English (please note this only allow to set ONCE ONLY!!)
    click SAVE disk icon
    highlight THAI then select LANGUAGE -> IMPORT PACKAGE
    Language = China
    Path = (the CD above, must be UNIX path if backend is UNIX server!)
    2. /nRZ10
    Profile = select INSTANCE PROFILE
    Click EXTENDED MAINTENANCE
    -> then click CHANGE
    -> click PARAMETER button at top bar
    set install/codepage/appl_server = 8600 (note: 86=Thai, 00=English)
    3. /nSE38
    execute Program = RSCPINST -> click execute icon
    under Enter Languages -> remove German(DE) & add China (CH) {please note ONLY allow TWO languages max)
    click SIMULATE button at top bar (this will tell you if any errors, example Code Page not match)
    If simulate OK then click ACTIVATE button on top bar.
    FINISH u2013 your language is installed & activated!!!!!!!

  • How to specify the font in a JList?

    My application has four columns of data represented in a JList. The default font style does proportional spacing.
    I need to specify a fixed width font to control column alignment in the JList. Unless there's something like tab positions? If I can specify a fixed width font, I can format the display strings appropriately.
    I think I need to use a cell renderer to control the actual drawing of each cell in the JList?
    Also, where do I find a list of the font types?
    Thanks in advance!

    I don't think you need a cell renderer. You find out how to specify font names by (oddly enough) looking in the API documentation for the Font class; the info for the most usable-looking constructor tells you what you want to know.

  • How to install chinese font

    I need to read Chinese fonts in Acrobat X, were do I find the downlod to do this and how do I do it?

    Hi ,
    Please refer the following document to download Chinese Font Pack for Acrobat X .
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4883&fileID=4557
    Hope this will help.
    Regards
    Sukrit Dhingra

  • How i assign chinese font to a text item

    Hi,
    I have a chinese font and i want assign that in a text box.
    how i do that??
    plez kindely help me out..

    Is the chinese font installed in your system? If yes, then it'd come in the drop down menu under the font property of the text box item.

  • How to add Chinese fonts to Pages for iPad

    I only have one Chinese font on Pages, can I add more?

    You can try.  See
    http://m10lmac.blogspot.com/2014/01/app-to-add-fonts-to-ios-devices.html
    but I think there may be a size limit and Chinese fonts may be too big.  Let us know if it works for you.

  • How to apparel Chinese font?

    I create two button, one is JavaFX button another is Swing button.
    The all fill Chinese word. but, it has different looking on two buttons.
    The Chinese font on JavaFX button is ugly.
    There is the demo app screenshot.
    [http://farm5.static.flickr.com/4047/4303941032_2294ed6a99_o.jpg]
    There is my code.
    package button;
    * @author Administrator
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.ext.swing.SwingButton;
    var fxbutton = Button{
         text: "\u6309\u9215\u6e2c\u8a66"
         translateX: 75
         translateY: 50
    var swingbutton = SwingButton {
        text: "\u6309\u9215\u6e2c\u8a66",
         translateX: 75
         translateY: 100
    Stage {
        title : "MyApp"
        scene: Scene {
            width: 200
            height: 200
            content: [ fxbutton, swingbutton]
    }And, I try to change font by using Font object, but it is the same.
    My development environment
    WinXP SP3
    Java SE SDK 6u17
    Java FX SDK 1.2.1
    Eclipse 3.5.1 with JavaFX plug-in
    Are there some tips to apparel Chinese word? I wanna a good looking Chinese word.
    Edited by: onlinemad on Jan 25, 2010 9:17 AM

    If you are on windows.
    right click on the font in the explorer and Install.

  • Chinese font

    Does anyone know how to add chinese font to pages? I want to be able to change between writing chinese and english, is that possible?

    You don't need to add any fonts, there are tons of them already in OS X.  You just need to activate one of the Chinese keyboards in system preferenes/language & text/input sources, select it in the "flag" menu at the top right of the screen, and type away.
    A site devoted to help with Chinese can be found at
    http://www.yale.edu/chinesemac

  • How to specify fonts in text in SVG file?

    I've got an Edge Animate composition that includes a bunch of SVG files which specify (inside the svg files themselves) that a particular font should be used. So for instance, there's text in the SVG that's set to render in Arial. If I view that SVG by itself in the browser, the text is rendered in Arial. But when that SVG is part of an Edge composition, the text in that SVG reverts to some other default font.
    The same problem happens when I try to specify a custom web font inside the SVG. The web font shows up fine when viewing the SVG independently, but when it's part of an Edge composition, it reverts to a default (Some serif font: Times, I think.)
    Let me stress this is NOT about specifying the fonts in Edge itself (by adding the web font to the edge composition, and then styling text from within the Edge Animate interface): this is about text that has been specified in the SVG file in Illustrator. That font specification is ignored when the SVG is brought into Edge.
    This text in the SVG shows as Arial when I'm in the Edge Animate interface, but when I view the whole composition in the browser, that's when it reverts to a different font.
    Any ideas what's going on here?

    Thanks for the reply. Yes, I've given up on fonts embedded in SVGs for now. I tried using SVGs with all text converted to outlines. That solved the type problem. But it of course made all the SVGs very large. I'm now having a problem with the Edge composition not fully loading.
    It throws some javascript errors that indicate that al the libraries haven't loaded. Or, sometimes it just pulls up a blank page and nothing ever shows up, even when there are no javascript errors. The errors are mostly this:
    Uncaught ReferenceError: jQuery is not defined byod_edgeActions.js:191(anonymous function)byod_edgeActions.js:191
    Uncaught TypeError: Object #<Object> has no method 'okToLaunchComposition' byod_edgePreload.js:27
    edgeCallbackbyod_edgePreload.js:27
    (anonymous function)byod_edgePreload.js:15
    tbyod_edgePreload.js:11
    dbyod_edgePreload.js:10
    I.b.onreadystatechange.b.onloadbyod_edgePreload.js:10
    So I'm thinking the loader is trying to move on to execute code when it hasn't loaded what it needs. This was happening on Firefox and Chrome. So now I've converted some of the larger SVGs to PNGs, which brought their file size down considerably. This eliminated the error on Firefox, but I'm still getting it in Chrome. I think it's just taking too long to load all my animations. It's a pretty big composition: an infographic that's 548 px wide by 3100 px tall. It has 8 animations in it, each as a symbol. There are perhaps 80 individual graphic elements in total that are involved in the animations.
    Even when those graphic files are as small as I can make them, Chrome still errors out before displaying anything.
    If it just turns out that this is too big a composition to be done in Edge Animate, I'm in big trouble, as a client has already paid for this.
    I'm hoping I can find a way to slow down the loader and make it wait until everything is loaded before moving on. But it's tough, as the edgePreload.js file wasn't meant to be tampered with, and is minified. I don't mind having a preload image appear for a while with a "loading..." message. But if it never loads...
    Not sure how to proceed, really.

  • How to use chinese big5 fonts in Linux with Java 2 1.4.0.01? Please help me

    Hello
    I just trying to run a java program in Mandrake Linux 8.2. Everythings work well except the fonts. I did read this page
    http://java.sun.com/j2se/1.3/docs/guide/intl/fontprop.html
    but the problem still there.
    Because I don't know how to modify the fonts.properties file. Java seem not support a world language version in Linux. (Although it support in Windows.)
    Then I tired to use the windows file, fonts.properties.xh_TW, to replace the fonts.properties in j2sdk in Linux. But it doesn't work.
    Please help me by either show me how to modify the fonts.properties file or direct me where to download a Big5 fonts in Linux version. Thanks a lot!!!

    Sorry I have been out of for a long time.
    If you already follow all the step of Locale help online,
    may be your font.dir in your /usr/lib/X11/fonts/TrueType/fonts.dir is not as
    the alias it was expected.
    take a look of that file.
    In xtt for chinese, there may be short cut like vl=y as such, because java
    render the font directly getting info from the fonts.dir so if the font filename
    is not as expected, you will not able to load the fonts. What you need to do is
    ln -s realfont vl=y:realfont
    to link the font to the make java think the name of the font is actually vl=y:realfont.
    Let me know you get it.
    [email protected]

  • Which font and how to add a chinese font into font book that can be used in CS6 programs

    I am wondering which chinese fonts are useable for Mac OS X. Which to buy and how to use. Should I use Font Pack or other programs to get the font to be used. Any advice is useful. Thank you

    Are you planning on using the Chinese language in Illustrator?  Or, do you just want a Chinese looking font, but using the English language?  I use Font Agent Pro for font management.  It allows you to install the font, view it and print a sample.  You can look for Chinese looking fonts online ( i.e., myfonts.com ).  As far as Chinese fonts themselves, I have no clue.

  • How i specify font size to SimpleDoc?Is It possible?

    how can i specify a font size for my printouts.im using below code and the printer use its default printsize.can eny one help me to specify my own size to it?
    private void printObsLine(String textToPrinter) {
              DocFlavor flavor = new DocFlavor("application/octet-stream","java.io.InputStream");
              // printLine = printLine + LINE_SEPERATOR;
              InputStream inS = new ByteArrayInputStream(textToPrinter.getBytes());
              Doc doc = new SimpleDoc(inS, flavor, null);
              //DocAttributeSet docset = new DocAttributeSet();
              PrintService ps = PrintServiceLookup.lookupDefaultPrintService();
              DocPrintJob pj  = ps.createPrintJob();
              PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
              try {
                   pj.print(doc, null);
              } catch (Exception e) {
                   e.printStackTrace();
              System.out.print(textToPrinter);
         }Thanks.
    Edited by: Anushkadar on Dec 15, 2008 8:56 AM

    how can i specify a font size for my printouts.im using below code and the printer use its default printsize.can eny one help me to specify my own size to it?
    private void printObsLine(String textToPrinter) {
              DocFlavor flavor = new DocFlavor("application/octet-stream","java.io.InputStream");
              // printLine = printLine + LINE_SEPERATOR;
              InputStream inS = new ByteArrayInputStream(textToPrinter.getBytes());
              Doc doc = new SimpleDoc(inS, flavor, null);
              //DocAttributeSet docset = new DocAttributeSet();
              PrintService ps = PrintServiceLookup.lookupDefaultPrintService();
              DocPrintJob pj  = ps.createPrintJob();
              PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
              try {
                   pj.print(doc, null);
              } catch (Exception e) {
                   e.printStackTrace();
              System.out.print(textToPrinter);
         }Thanks.
    Edited by: Anushkadar on Dec 15, 2008 8:56 AM

  • How to download traditional and simplified Chinese fonts in PS? [was:Hello, is it possible]

    to download traditional and simplified Chinese fonts and install them into Photoshop (if I can find a site that will allow me to download them)? Would I just download them and install them to my Windows font folder and Photoshop would display them under its font tool just like it would Times Roman, Verdana, etc?
    Thank you.
    Steve

    Yes, fonts are handled by the system. Depending on what type of fonts you may however still need to change your system language and region settings to actually get access to them...
    Mylenium

  • How to display Chinese Character(s) in a image on a Linux platform?

    Hi,
    I have the following code that runs perfect on Windows XP system after I installed the Chinese fonts on it, and set the fontconfig file under jre.
    What the program does is: load an image file, write some Chinese chars in it and redisplay the image, so that the image will contain the Chinese characters in it.
    I ported the generating image with Chinese Characers part of code into a web application which the servlet returns the modified image to client. The web application is running on a linux box. However, when a user views the image on the browser, the Chinese chars are not well displayed (they are just several squares).
    My question is, does the problem comes from the Chinese fonts settings on the linux system where the servlet is running on? And, how to fix the problem, any simple links on how to do that?
    Thanks.
    public void paint(Graphics g) {
    ImageIcon photo = new ImageIcon("C:\\image.jpg");
    Graphics2D g2 = (Graphics2D)g;
    g2.drawImage(photo.getImage(), 0, 0, null);
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    Font font = new Font("Arial Unicode MS", Font.PLAIN, 16);
    g2.setFont(font);
    g2.drawString("’†•¶", 140, 220);
    }

    "Arial Unicode MS" is the font provided by Microsoft, usually with MS Office products. I believe that's why those Chinese are rendered as square boxes on Linux. Either specifying some Chinese font available on your Linux box in the Font constructor, or using one of the logical fonts instead (for JDK5 and later) would help.
    Naoto

Maybe you are looking for

  • My Mac is running very Slow

    Hello Everyone, for the past couple of months my mac has been preforming slower to the point where it takes me ten minutes to type in my password to log in what puzzles me is that I use less than 1/5 of my hard-rive and I only use 2-3 application at

  • RFC returning PDF form in Binary table

    Hello, In our earlier application we were using a RFC to return PDF form as a table of binary fields and then these fields were concatenated and .pdf extension addded at the end. This will then display correctly in browser as a pdf form. Typically, t

  • Merge two folders????

    I have a large folder hierarchy that has all of my documents and files organized into folders & sub-folders. All in all were talking about 40 gigs worth of evidence, documents, and other assorted things. Before I was converted from XP I could easily

  • Exporting Settings (Premiere Pro CS4 with Matrox)

    Premiere Pro CS4 Canon XHG1 camera (HDV/Mini DV/NTSC) Matrox RT.X2 HP Z800 with 2.4GHz Intel Xeon processor, 12GB RAM, and running Windows 7 I have experience with digital video editing in Premiere, exporting up to 40-minute videos (that took maybe 2

  • I Want Quicktime!

    have recently been downloading a lot of game review/trailers off of www.ign.com which i am safely assuming to be a legitimate website in every sense of the term upon saving the trailer and subsequently playing them they would crash randomly in Quickt